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

Error: [$injector:modulerr] Failed to instantiate module MobileApp.routes due to: Error: [ng:areq] Argument 'fn' is not a function, got string

$
0
0

@Pajimola wrote:

This is my route.js
angular.module('MobileApp.routes', [])

.config('$routeProvider', function($stateProvider, $urlRouterProvider, $routeProvider) {

$stateProvider

.state('logintpl', {
url: '/logintpl',
templateUrl: 'templates/tpl/login.tpl.html',
controller: 'logintplCtrl'
})

$routeProvider.when('/login', {templateUrl: 'templates/login.html'});
$urlRouterProvider.otherwise('/logintpl')

});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



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