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.
29
-
*
29
+
*
30
30
* @example
31
-
* A view can be unnamed or named.
31
+
* A view can be unnamed or named.
32
32
* <pre>
33
33
* <!-- Unnamed -->
34
-
* <div ui-view></div>
35
-
*
34
+
* <div ui-view></div>
35
+
*
36
36
* <!-- Named -->
37
37
* <div ui-view="viewName"></div>
38
38
* </pre>
39
39
*
40
-
* 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
41
41
* single view and it is unnamed then you can populate it like so:
42
42
* <pre>
43
-
* <div ui-view></div>
43
+
* <div ui-view></div>
44
44
* $stateProvider.state("home", {
45
45
* template: "<h1>HELLO!</h1>"
46
46
* })
47
47
* </pre>
48
-
*
48
+
*
49
49
* The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#methods_state `views`}
50
50
* config property, by name, in this case an empty name:
51
51
* <pre>
@@ -57,13 +57,13 @@
57
57
* }
58
58
* })
59
59
* </pre>
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,
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,
63
63
* but you could if you wanted, like so:
64
64
* <pre>
65
65
* <div ui-view="main"></div>
66
-
* </pre>
66
+
* </pre>
67
67
* <pre>
68
68
* $stateProvider.state("home", {
69
69
* views: {
@@ -73,14 +73,14 @@
73
73
* }
74
74
* })
75
75
* </pre>
76
-
*
76
+
*
77
77
* Really though, you'll use views to set up multiple views:
0 commit comments