Return to Snippet

Revision: 70638
at May 18, 2016 17:54 by aravindnair93


Initial Code
.config(function ($routeProvider, $locationProvider) {
            $routeProvider
                    .when("/", {
                        templateUrl: 'template/initial.php',
                        controller: 'mp3Ctrl'
                    })
                    .when("/Search/:searchTerm", {
                        templateUrl: 'template/result.php',
                        controller: 'searchCtrl'
                    })
                    .otherwise({redirectTo: ''});

            $locationProvider.html5Mode(true); //For removing # from url
        })

Initial URL

                                

Initial Description
Config for Single page application

Initial Title
Configuration for tagwise page Display - AngularJS

Initial Tags

                                

Initial Language
JavaScript