Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

Re: View should call another view's function to create an if-else statement but doesnt work..

$
0
0

Hi Ogulcan,

 

Bind model property to your page title. Plunk Edited: Plunker

Click on Second Button, it will navigate to second page showing title as 'Second Button'. Click on Third Button it will show as 'Third Button'. So, depending on the button selection made the selected button title appears in the second view.

 

You can check the changes made to get this at -

FirstPage.controller.js: Line #7 where I am setting a model property '/oTitle' with selected button text.

SecondPage.view.js: Line#8 where I have have bound the title property with '/oTitle' property that I have set in the firstpage controller.

 

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 2740


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>