@@ -70,25 +70,24 @@ function defaultOpts(el, $state) {
70
70
/**
71
71
* `ui-sref`: A directive for linking to a state
72
72
*
73
- * A directive that binds a link (`<a>` tag) to a state. If the state has an associated
74
- * URL, the directive will automatically generate & update the `href` attribute via
75
- * the { @link ui.router.state.$state#methods_href $state .href()} method. Clicking
76
- * the link will trigger a state transition with optional parameters.
73
+ * A directive that binds a link (`<a>` tag) to a state.
74
+ * If the state has an associated URL, the directive will automatically generate and
75
+ * update the `href` attribute via the [[StateService .href]] method.
76
+ * Clicking the link will trigger a state transition with optional parameters.
77
77
*
78
78
* Also middle-clicking, right-clicking, and ctrl-clicking on the link will be
79
79
* handled natively by the browser.
80
80
*
81
81
* You can also use relative state paths within ui-sref, just like the relative
82
- * paths passed to `$state.go()`. You just need to be aware that the path is relative
83
- * to the state that the link lives in, in other words the state that loaded the
84
- * template containing the link.
82
+ * paths passed to `$state.go()`.
83
+ * You just need to be aware that the path is relative to the state that the link lives in.
84
+ * In other words, the state that created the view containing the link.
85
85
*
86
- * You can specify options to pass to {@link ui.router.state.$state#go $state.go()}
87
- * using the `ui-sref-opts` attribute. Options are restricted to `location`, `inherit`,
88
- * and `reload`.
86
+ * You can specify options to pass to [[StateService.go]] using the `ui-sref-opts` attribute.
87
+ * Options are restricted to `location`, `inherit`, and `reload`.
89
88
*
90
- * Here's an example of how you'd use ui-sref and how it would compile. If you have the
91
- * following template:
89
+ * Here's an example of how you'd use ui-sref and how it would compile.
90
+ * If you have the following template:
92
91
*
93
92
* @example
94
93
* ```html
@@ -130,7 +129,7 @@ function defaultOpts(el, $state) {
130
129
* @param {string } ui-sref 'stateName' can be any valid absolute or relative state
131
130
* @param {Object } ui-sref-opts options to pass to [[StateService.go]]
132
131
*/
133
- let uiSrefNg1 = [ '$state' , '$timeout' ,
132
+ let uiSref = [ '$state' , '$timeout' ,
134
133
function $StateRefDirective ( $state , $timeout ) {
135
134
return {
136
135
restrict : 'A' ,
@@ -182,7 +181,7 @@ function $StateRefDirective($state, $timeout) {
182
181
* @param {Object } ui-state-params params to pass to [[StateService.href]]
183
182
* @param {Object } ui-state-opts options to pass to [[StateService.go]]
184
183
*/
185
- let uiStateNg1 = [ '$state' , '$timeout' ,
184
+ let uiState = [ '$state' , '$timeout' ,
186
185
function $StateRefDynamicDirective ( $state , $timeout ) {
187
186
return {
188
187
restrict : 'A' ,
@@ -294,7 +293,7 @@ function $StateRefDynamicDirective($state, $timeout) {
294
293
* to both the <div> and <a> elements. It is important to note that the state
295
294
* names/globs passed to ui-sref-active shadow the state provided by ui-sref.
296
295
*/
297
- let uiSrefActiveNg1 = [ '$state' , '$stateParams' , '$interpolate' , '$transitions' ,
296
+ let uiSrefActive = [ '$state' , '$stateParams' , '$interpolate' , '$transitions' ,
298
297
function $StateRefActiveDirective ( $state , $stateParams , $interpolate , $transitions ) {
299
298
return {
300
299
restrict : "A" ,
@@ -403,7 +402,7 @@ function $StateRefActiveDirective($state, $stateParams, $interpolate, $transitio
403
402
} ] ;
404
403
405
404
angular . module ( 'ui.router.state' )
406
- . directive ( 'uiSref' , uiSrefNg1 )
407
- . directive ( 'uiSrefActive' , uiSrefActiveNg1 )
408
- . directive ( 'uiSrefActiveEq' , uiSrefActiveNg1 )
409
- . directive ( 'uiState' , uiStateNg1 ) ;
405
+ . directive ( 'uiSref' , uiSref )
406
+ . directive ( 'uiSrefActive' , uiSrefActive )
407
+ . directive ( 'uiSrefActiveEq' , uiSrefActive )
408
+ . directive ( 'uiState' , uiState ) ;
0 commit comments