I am trying to use the ng-click feature of AngularJS to switch views. How would I go about doing this with the code below?
index.html
Firstly you have to create state in app.js as below .state('login', { url: '/', templateUrl: 'views/login.html', controller: 'LoginCtrl' }) and use below code in controller $location.path('login');
Hope this will help you