I am new to angularjs. I am not getting any errors or results in my testing project below. index.html
<html ng-app="UserAuth">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>User Auth</title>
<script src="http://code.angularjs.org/1.2.13/angular.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.8/angular-ui-router.min.js"></script>
<script src="js/app.js"></script>
<script src="controller/loginController.js"></script>
</head>
<body>
<div ui-view></div>
</body>
</html>
js/app.js
var app = angular.module('UserAuth', ['ui.router']);
app.config(function ($stateProvider) {
$stateProvider
.state('login', {
url: "/",
controller: "LoginController",
templateUrl: "login.html"
})
});
controller/loginController.js
app.controller('UserAuth', function ($scope, $http) {
});
I am facing an issue where the login.html page is not being displayed.