This repository was archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathIntro.js
More file actions
46 lines (44 loc) · 1.26 KB
/
Intro.js
File metadata and controls
46 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Intro Module
============
Demonstrates putting sub-states inside a modal, such as for an introduction wizard.
*/
var module = angular.module('App.Intro', ['ui.router', 'ui.bootstrap'])
module.config(function($stateProvider) {
$stateProvider.state( 'intro', {
parent: 'authenticated',
url: '/intro',
resolve: {
modal: function($modal) {
return $modal.open({
templateUrl: 'modules/Intro/Intro.html',
controller: 'Intro',
});
}
}
});
$stateProvider.state( 'intro.projects', {
url: '/projects', // /intro/projects
views: {
'modal@': { // The $modal service places HTML at the top of the document. I know, it's weird.
templateUrl: 'modules/Intro/projects.html'
}
},
});
$stateProvider.state( 'intro.tasks', {
url: '/tasks', // /intro/tasks
views: {
'modal@': { // The $modal service places HTML at the top of the document. I know, it's weird.
templateUrl: 'modules/Intro/tasks.html'
}
},
});
$stateProvider.state( 'intro.done', {
url: '/done', // /intro/done
views: {
'modal@': { // The $modal service places HTML at the top of the document. I know, it's weird.
templateUrl: 'modules/Intro/done.html'
}
},
});
});