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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -