Button click not open new page

Hello all,

Here is my code. I want to open a new page when user click on “Login” button. I already wrote config function and set state name also. Why my “applicaion.html” page is not opening.

In console i can see username print but $state.go(‘apps’) line is not working.

Please help me. Thanks in advance.


I think you misunderstood the way the views and templates work in a combination with states.
Please read more about it this at http://ionicframework.com/docs/api/directive/ionNavView/. And take a look at the video at the bottom of the page to learn about ui-router. This is basic knowledge you will need to make Ionic applications.

Also, for your example, here is how you can make it work: