2
I’m creating an angled web application and can’t make the login screen appear in index.html, out of which an error message appears in the console.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.2/$injector/modulerr? P0=weset&p 1=Error%3A%2... oogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.6.2%2Fangular.min.js%3A45%3A20)
HTML
<!DOCTYPE html>
<html ng-app='weset'>
<head>
<title>WESET</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.2/angular.min.js"></script>
<script src="js/app.js"></script>
<script src="js/wesetConfig.js"></script>
<script src="controllers/loginCtrl.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div ng-view></div>
<script src="js/jquery-3.1.1.min.js"></script>
</body>
</html>
app js.
var app = angular.module('weset', []);
controller js.
app.controller('loginCtrl', ['$scope', '$http',function($scope, $http){
}])
config.js
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('login', {
url: '/login',
templateUrl: 'templates/login.html',
controller: 'loginCtrl'
});
$urlRouterProvider.otherwise('/login');
});