You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string=} onload Expression to evaluate whenever the view updates.
34
-
*
29
+
*
35
30
* @example
36
-
* A view can be unnamed or named.
31
+
* A view can be unnamed or named.
37
32
* <pre>
38
33
* <!-- Unnamed -->
39
-
* <div ui-view></div>
40
-
*
34
+
* <div ui-view></div>
35
+
*
41
36
* <!-- Named -->
42
37
* <div ui-view="viewName"></div>
43
38
* </pre>
44
39
*
45
-
* You can only have one unnamed view within any template (or root html). If you are only using a
40
+
* You can only have one unnamed view within any template (or root html). If you are only using a
46
41
* single view and it is unnamed then you can populate it like so:
47
42
* <pre>
48
-
* <div ui-view></div>
43
+
* <div ui-view></div>
49
44
* $stateProvider.state("home", {
50
45
* template: "<h1>HELLO!</h1>"
51
46
* })
52
47
* </pre>
53
-
*
48
+
*
54
49
* The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#methods_state `views`}
55
50
* config property, by name, in this case an empty name:
56
51
* <pre>
@@ -62,13 +57,13 @@ var ngMinorVer = angular.version.minor;
62
57
* }
63
58
* })
64
59
* </pre>
65
-
*
66
-
* But typically you'll only use the views property if you name your view or have more than one view
67
-
* in the same template. There's not really a compelling reason to name a view if its the only one,
60
+
*
61
+
* But typically you'll only use the views property if you name your view or have more than one view
62
+
* in the same template. There's not really a compelling reason to name a view if its the only one,
68
63
* but you could if you wanted, like so:
69
64
* <pre>
70
65
* <div ui-view="main"></div>
71
-
* </pre>
66
+
* </pre>
72
67
* <pre>
73
68
* $stateProvider.state("home", {
74
69
* views: {
@@ -78,14 +73,14 @@ var ngMinorVer = angular.version.minor;
78
73
* }
79
74
* })
80
75
* </pre>
81
-
*
76
+
*
82
77
* Really though, you'll use views to set up multiple views:
83
78
* <pre>
84
79
* <div ui-view></div>
85
-
* <div ui-view="chart"></div>
86
-
* <div ui-view="data"></div>
80
+
* <div ui-view="chart"></div>
81
+
* <div ui-view="data"></div>
87
82
* </pre>
88
-
*
83
+
*
89
84
* <pre>
90
85
* $stateProvider.state("home", {
91
86
* views: {
@@ -116,8 +111,8 @@ var ngMinorVer = angular.version.minor;
0 commit comments