Replacing AngularJS Route with UI Router -
i'm trying replace angularjs route ui router since seems uses. i'm getting started , wondering how replace following code $stateprovider:
$routeprovider .when('/login', { templateurl: 'views/login.html', controller: 'loginctrl' }) .when('/dashboard', { templateurl: 'views/dashboard.html', controller: 'dashboardctrl' }) .otherwise({ redirectto: '/login' });
replace when state:
$stateprovider .state('state1', { url: "/state1", templateurl: "partials/state1.html" }) more details here: https://github.com/angular-ui/ui-router
Comments
Post a Comment