components icon indicating copy to clipboard operation
components copied to clipboard

AngularJS Routing Documentation Required

Open siddmegadeth opened this issue 5 years ago • 0 comments

As there is support for AngularJS 1.x . There is also need to support or provide some documentation as how to use Routing with AngularJS ngRoute .


    app.config(['$httpProvider','$routeProvider','$locationProvider', function($httpProvider,$routeProvider,$locationProvider) {

        $locationProvider.hashPrefix('');

        $routeProvider
        .when("/",{
            templateUrl : 'components/landing/landing.html',
            controller : 'landingCtrl'
        })
         .when("/login",{
            templateUrl : 'components/login/login.html',
            controller : 'loginCtrl'
        })
        .otherwise({ redirectTo: '/' })

    }]);

Documentation is Missing

siddmegadeth avatar Jul 12 '19 09:07 siddmegadeth