|
18 | 18 | // Handles wrong and empty urls
|
19 | 19 | $urlRouterProvider.otherwise(function($injector, $location) {
|
20 | 20 | if ($location.path().length > 1) return '/404';
|
21 |
| - else return '/home'; |
| 21 | + else return '/demo-home'; |
22 | 22 | });
|
23 | 23 |
|
24 | 24 | // Handles case-insensitive urls
|
|
32 | 32 | });
|
33 | 33 |
|
34 | 34 | // Handles Redirects
|
35 |
| - $urlRouterProvider.when('/home', '/home/libs'); |
| 35 | + $urlRouterProvider.when('/demo-home', '/demo-home/libs'); |
36 | 36 |
|
37 | 37 | $stateProvider
|
38 | 38 |
|
|
41 | 41 | template: '<h1>404 Not Found</h1>'
|
42 | 42 | })
|
43 | 43 |
|
44 |
| - .state('home', { |
45 |
| - url: '/home', |
46 |
| - templateUrl: 'views/partial-home.html' |
| 44 | + .state('demo-home', { |
| 45 | + url: '/demo-home', |
| 46 | + templateUrl: 'views/demo-home.html' |
47 | 47 | })
|
48 |
| - .state('home.libs', { |
| 48 | + .state('demo-home.libs', { |
49 | 49 | url: '/libs',
|
50 |
| - templateUrl: 'views/partial-home-list.html', |
| 50 | + templateUrl: 'views/demo-home-list.html', |
51 | 51 | controller: 'ListController'
|
52 | 52 | })
|
53 | 53 |
|
54 | 54 | // nested list with just some random string data
|
55 |
| - .state('home.usage', { |
| 55 | + .state('demo-home.usage', { |
56 | 56 | url: '/usage',
|
57 | 57 | // eslint-disable-next-line max-len
|
58 | 58 | template: '<h4>Use this recipy to quickly start a production level development.<br>Also helpful for beginners who wish to understand the basic digest system of angularJS and how to accelerate the development and building tasks with task automation.<br><br>You are free to modify, distribute and sell.</h4>'
|
59 | 59 | })
|
60 | 60 |
|
61 | 61 | // ABOUT PAGE AND MULTIPLE NAMED VIEWS =================================
|
62 |
| - .state('about', { |
63 |
| - url: '/about', |
| 62 | + .state('demo-about', { |
| 63 | + url: '/demo-about', |
64 | 64 | views: {
|
65 | 65 | '': {
|
66 |
| - templateUrl: 'views/partial-about.html' |
| 66 | + templateUrl: 'views/demo-about.html' |
67 | 67 | },
|
68 |
| - 'columnOne@about': { |
| 68 | + 'columnOne@demo-about': { |
69 | 69 | // eslint-disable-next-line max-len
|
70 | 70 | template: '<p style="padding-top: 25px;">Those who are new to angularJS they must have a question in mind, "How to run the angular properly?"<br><br>Well, this tiny gulp tool built on NodeJS can run the angular source in the browser and watch for file changes while you are developing.<br>When you are deploying the project, you can just minify the source to prevent you source from being stolen as well as reduce the build size remarkably.</p>'
|
71 | 71 | },
|
72 |
| - 'columnTwo@about': { |
73 |
| - templateUrl: 'views/table-data.html', |
| 72 | + 'columnTwo@demo-about': { |
| 73 | + templateUrl: 'views/demo-table-data.html', |
74 | 74 | controller: 'CommandController'
|
75 | 75 | }
|
76 | 76 | }
|
|
0 commit comments