Skip to content

Commit cfc4d3c

Browse files
committedMay 26, 2018
updated pages
1 parent 996df28 commit cfc4d3c

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed
 

‎app/app-config.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Handles wrong and empty urls
1919
$urlRouterProvider.otherwise(function($injector, $location) {
2020
if ($location.path().length > 1) return '/404';
21-
else return '/home';
21+
else return '/demo-home';
2222
});
2323

2424
// Handles case-insensitive urls
@@ -32,7 +32,7 @@
3232
});
3333

3434
// Handles Redirects
35-
$urlRouterProvider.when('/home', '/home/libs');
35+
$urlRouterProvider.when('/demo-home', '/demo-home/libs');
3636

3737
$stateProvider
3838

@@ -41,36 +41,36 @@
4141
template: '<h1>404 Not Found</h1>'
4242
})
4343

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'
4747
})
48-
.state('home.libs', {
48+
.state('demo-home.libs', {
4949
url: '/libs',
50-
templateUrl: 'views/partial-home-list.html',
50+
templateUrl: 'views/demo-home-list.html',
5151
controller: 'ListController'
5252
})
5353

5454
// nested list with just some random string data
55-
.state('home.usage', {
55+
.state('demo-home.usage', {
5656
url: '/usage',
5757
// eslint-disable-next-line max-len
5858
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>'
5959
})
6060

6161
// ABOUT PAGE AND MULTIPLE NAMED VIEWS =================================
62-
.state('about', {
63-
url: '/about',
62+
.state('demo-about', {
63+
url: '/demo-about',
6464
views: {
6565
'': {
66-
templateUrl: 'views/partial-about.html'
66+
templateUrl: 'views/demo-about.html'
6767
},
68-
'columnOne@about': {
68+
'columnOne@demo-about': {
6969
// eslint-disable-next-line max-len
7070
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>'
7171
},
72-
'columnTwo@about': {
73-
templateUrl: 'views/table-data.html',
72+
'columnTwo@demo-about': {
73+
templateUrl: 'views/demo-table-data.html',
7474
controller: 'CommandController'
7575
}
7676
}

‎components/directives/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
</div>
2626
<div id="footer-black">
2727
<div class="container-fluid text-center">
28-
<p>Copyright 2017 &copy; Angular-Gulp Boilerplate</p>
28+
<p>Copyright 2018 &copy; Angular-Gulp Boilerplate</p>
2929
</div>
3030
</div>

‎views/partial-about.html ‎views/demo-about.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<div class="jumbotron text-center">
33
<h1>The About Page</h1>
44
<p>This app uses Angular <span class="text-danger">UI Router</span></p>
5-
<a ui-sref="home" class="btn btn-primary btn-lg">Home</a>
5+
<p>Get the source code from, <span class="text-primary"><a href="https://github.com/tanmoythander/angular-gulp-boilerplate" target="_blank">github</a></span></p>
6+
<a ui-sref="demo-home" class="btn btn-primary btn-lg">Home</a>
67
</div>
78

89
<div class="container">
File renamed without changes.

‎views/partial-home.html ‎views/demo-home.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
<div class="jumbotron text-center">
33
<h1>AngularJS & Gulp Boilerplate</h1>
44
<p>This is the demo <span class="text-danger">Homepage</span>.</p>
5+
<p>Get the source code from, <span class="text-primary"><a href="https://github.com/tanmoythander/angular-gulp-boilerplate" target="_blank">github</a></span></p>
56

6-
<a ui-sref="about" class="btn btn-lg btn-warning">About</a>
7+
<a ui-sref="demo-about" class="btn btn-lg btn-warning">About</a>
78
<br>
89
<br>
910

10-
<a ui-sref="home.libs" class="btn btn-primary">Libraries</a>
11-
<a ui-sref="home.usage" class="btn btn-danger">Usage</a>
11+
<a ui-sref="demo-home.libs" class="btn btn-primary">Libraries</a>
12+
<a ui-sref="demo-home.usage" class="btn btn-danger">Usage</a>
1213

1314
</div>
1415
<div class="container">
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.