Skip to content

Commit a0f168d

Browse files
docs: rename sref symbols and export them for docs
1 parent 7407d1c commit a0f168d

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
"Interfaces": [
130130
"Ng1StateDeclaration"
131131
],
132-
"Components": [
133-
"uiView",
134-
"UISref",
135-
"UISrefActive",
136-
"uiStateDirective"
132+
"Directives": [
133+
{ "name": "uiView", "kindString": "Variable" },
134+
{ "name": "uiSref", "kindString": "Variable" },
135+
{ "name": "uiSrefActive", "kindString": "Variable" },
136+
{ "name": "uiState", "kindString": "Variable" }
137137
],
138138
"Other": [
139139
"Transition",

src/directives/stateDirectives.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ function bindEvents(element: IAugmentedJQuery, scope: IScope, hookFn: EventListe
281281
* - Unlike the parameter values expression, the state name is not `$watch`ed (for performance reasons).
282282
* If you need to dynamically update the state being linked to, use the fully dynamic [[uiState]] directive.
283283
*/
284-
let uiSrefDirective: ng1_directive;
285-
uiSrefDirective = [
284+
export let uiSref: ng1_directive;
285+
uiSref = [
286286
'$uiRouter',
287287
'$timeout',
288288
function $StateRefDirective($uiRouter: UIRouter, $timeout: ITimeoutService) {
@@ -419,8 +419,8 @@ uiSrefDirective = [
419419
* - A middle-click, right-click, or ctrl-click is handled (natively) by the browser to open the href in a new window, for example.
420420
* ```
421421
*/
422-
let uiStateDirective: ng1_directive;
423-
uiStateDirective = [
422+
export let uiState: ng1_directive;
423+
uiState = [
424424
'$uiRouter',
425425
'$timeout',
426426
function $StateRefDynamicDirective($uiRouter: UIRouter, $timeout: ITimeoutService) {
@@ -569,8 +569,8 @@ uiStateDirective = [
569569
*
570570
* - Multiple classes may be specified in a space-separated format: `ui-sref-active='class1 class2 class3'`
571571
*/
572-
let uiSrefActiveDirective: ng1_directive;
573-
uiSrefActiveDirective = [
572+
export let uiSrefActive: ng1_directive;
573+
uiSrefActive = [
574574
'$state',
575575
'$stateParams',
576576
'$interpolate',
@@ -726,7 +726,7 @@ interface StateData {
726726

727727
angular
728728
.module('ui.router.state')
729-
.directive('uiSref', uiSrefDirective)
730-
.directive('uiSrefActive', uiSrefActiveDirective)
731-
.directive('uiSrefActiveEq', uiSrefActiveDirective)
732-
.directive('uiState', uiStateDirective);
729+
.directive('uiSref', uiSref)
730+
.directive('uiSrefActive', uiSrefActive)
731+
.directive('uiSrefActiveEq', uiSrefActive)
732+
.directive('uiState', uiState);

0 commit comments

Comments
 (0)