|
7 | 7 | 'ngStorage',
|
8 | 8 | 'ngResource'
|
9 | 9 | ])
|
10 |
| - .config(config); |
| 10 | + .config(config); |
11 | 11 |
|
12 | 12 | // safe dependency injection
|
13 | 13 | // this prevents minification issues
|
|
45 | 45 | url: '/home',
|
46 | 46 | templateUrl: 'views/partial-home.html'
|
47 | 47 | })
|
48 |
| - .state('home.libs', { |
49 |
| - url: '/libs', |
50 |
| - templateUrl: 'views/partial-home-list.html', |
51 |
| - controller: 'ListController' |
52 |
| - }) |
53 |
| - |
54 |
| - // nested list with just some random string data |
55 |
| - .state('home.usage', { |
56 |
| - url: '/usage', |
57 |
| - 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>' |
58 |
| - }) |
| 48 | + .state('home.libs', { |
| 49 | + url: '/libs', |
| 50 | + templateUrl: 'views/partial-home-list.html', |
| 51 | + controller: 'ListController' |
| 52 | + }) |
| 53 | + |
| 54 | + // nested list with just some random string data |
| 55 | + .state('home.usage', { |
| 56 | + url: '/usage', |
| 57 | + // eslint-disable-next-line max-len |
| 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 | // ABOUT PAGE AND MULTIPLE NAMED VIEWS =================================
|
61 | 62 | .state('about', {
|
|
65 | 66 | templateUrl: 'views/partial-about.html'
|
66 | 67 | },
|
67 | 68 | 'columnOne@about': {
|
| 69 | + // eslint-disable-next-line max-len |
68 | 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>'
|
69 | 71 | },
|
70 |
| - 'columnTwo@about': { |
| 72 | + 'columnTwo@about': { |
71 | 73 | templateUrl: 'views/table-data.html',
|
72 | 74 | controller: 'CommandController'
|
73 | 75 | }
|
74 | 76 | }
|
75 | 77 | });
|
76 | 78 | }
|
77 | 79 |
|
78 |
| - |
79 |
| - |
80 | 80 | /**
|
81 | 81 | * Run block
|
82 | 82 | * Runs first after launching
|
|
87 | 87 | run.$inject = ['$rootScope', '$state'];
|
88 | 88 |
|
89 | 89 | function run($rootScope, $state) {
|
90 |
| - |
91 |
| - |
| 90 | + // put here everything that you need to run on page reload |
92 | 91 | }
|
93 | 92 |
|
94 | 93 |
|
|
0 commit comments