how user otherwise on stateprovider similar angular ui router provider otherwise
angular.module('myapp', ['ui.router']) .config(['$urlrouterprovider','$stateprovider', function($urlrouterprovider, $stateprovider){ $urlrouterprovider .otherwise('/'); $stateprovider .state('home',{ url : '/', template: 'path_to_template', controller: 'homectrl' }) }])
Comments
Post a Comment