Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49167

Routes.js:278 Uncaught SyntaxError: missing ) after argument list

$
0
0

@Pajimola wrote:

angular.module('MobileApp.routes', ['ngRoute'])
.config(['$routeProvider', function($stateProvider, $urlRouterProvider, $routeProvider) {
$stateProvider
.state('login', {
url: '/login',
templateUrl: 'templates/login.html',
controller: 'LoginCtrl'
})

.state('home', {
url: '/home',
templateUrl: 'templates/home.html',
controller: 'homeCtrl'
})
$routeProvider.when('/login' {
templateUrl:'templates/login.html',
controller:'LoginCtrl'
});
$routeProvider.when('/home', {templateUrl: 'templates/home.html',controller:'HomeCtrl'});
$urlRouterProvider.otherwise({redirectTo: '/login'});
}]);

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49167

Trending Articles



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