Skip to content

Commit

Permalink
docs: rename sref symbols and export them for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Aug 8, 2020
1 parent 357ad9e commit 0f16a7a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@
"Interfaces": [
"Ng1StateDeclaration"
],
"Components": [
"uiView",
"UISref",
"UISrefActive",
"uiStateDirective"
"Directives": [
{ "name": "uiView", "kindString": "Variable" },
{ "name": "uiSref", "kindString": "Variable" },
{ "name": "uiSrefActive", "kindString": "Variable" },
{ "name": "uiState", "kindString": "Variable" }
],
"Other": [
"Transition",
Expand Down
20 changes: 10 additions & 10 deletions src/directives/stateDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ function bindEvents(element: IAugmentedJQuery, scope: IScope, hookFn: EventListe
* - Unlike the parameter values expression, the state name is not `$watch`ed (for performance reasons).
* If you need to dynamically update the state being linked to, use the fully dynamic [[uiState]] directive.
*/
let uiSrefDirective: ng1_directive;
uiSrefDirective = [
export let uiSref: ng1_directive;
uiSref = [
'$uiRouter',
'$timeout',
function $StateRefDirective($uiRouter: UIRouter, $timeout: ITimeoutService) {
Expand Down Expand Up @@ -419,8 +419,8 @@ uiSrefDirective = [
* - A middle-click, right-click, or ctrl-click is handled (natively) by the browser to open the href in a new window, for example.
* ```
*/
let uiStateDirective: ng1_directive;
uiStateDirective = [
export let uiState: ng1_directive;
uiState = [
'$uiRouter',
'$timeout',
function $StateRefDynamicDirective($uiRouter: UIRouter, $timeout: ITimeoutService) {
Expand Down Expand Up @@ -569,8 +569,8 @@ uiStateDirective = [
*
* - Multiple classes may be specified in a space-separated format: `ui-sref-active='class1 class2 class3'`
*/
let uiSrefActiveDirective: ng1_directive;
uiSrefActiveDirective = [
export let uiSrefActive: ng1_directive;
uiSrefActive = [
'$state',
'$stateParams',
'$interpolate',
Expand Down Expand Up @@ -726,7 +726,7 @@ interface StateData {

angular
.module('ui.router.state')
.directive('uiSref', uiSrefDirective)
.directive('uiSrefActive', uiSrefActiveDirective)
.directive('uiSrefActiveEq', uiSrefActiveDirective)
.directive('uiState', uiStateDirective);
.directive('uiSref', uiSref)
.directive('uiSrefActive', uiSrefActive)
.directive('uiSrefActiveEq', uiSrefActive)
.directive('uiState', uiState);

0 comments on commit 0f16a7a

Please sign in to comment.