Skip to content

Commit f144e8b

Browse files
docs(*): make module headers more consistent
1 parent 834ce57 commit f144e8b

18 files changed

+35
-46
lines changed

src/angular.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/**
2-
* @hidden
3-
* @module ng1
4-
*/ /** */
5-
declare var angular;
1+
/** @publicapi @module ng1 */ /** */
62
import * as ng_from_import from 'angular';
7-
const ng_from_global = angular;
8-
9-
export const ng = ng_from_import && ng_from_import.module ? ng_from_import : ng_from_global;
3+
/** @hidden */ declare var angular;
4+
/** @hidden */ const ng_from_global = angular;
5+
/** @hidden */ export const ng = ng_from_import && ng_from_import.module ? ng_from_import : ng_from_global;

src/directives/stateDirectives.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
* These are the directives included in UI-Router for Angular 1.
55
* These directives are used in templates to create viewports and link/navigate to states.
66
*
7-
* @ng1api
8-
* @preferred
9-
* @module directives
10-
*/ /** for typedoc */
7+
* @preferred @publicapi @module directives
8+
*/ /** */
119
import { ng as angular } from '../angular';
1210
import { IAugmentedJQuery, ITimeoutService, IScope, IInterpolateService } from 'angular';
1311

src/directives/viewDirective.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/**
2-
* @ng1api
3-
* @module directives
4-
*/
5-
1+
/** @publicapi @module directives */ /** */
62
import {
73
$QLike,
84
ActiveUIView,

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**
22
* Main entry point for angular 1.x build
3-
* @module ng1
3+
* @publicapi @module ng1
44
*/ /** */
5-
65
export * from './interface';
76
export * from './services';
87
export * from './statebuilders/views';

src/injectables.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
* - [[$stateParams]]: State param values for pending Transition (deprecated)
4747
* - Any resolve data defined using [[Ng1StateDeclaration.resolve]]
4848
*
49-
* @ng1api
50-
* @preferred
51-
* @module injectables
49+
* @preferred @publicapi @module injectables
5250
*/ /** */
5351
/* tslint:disable:prefer-const */
5452
import { StateProvider } from './stateProvider';

src/interface.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/**
2-
* @ng1api
3-
* @module ng1
4-
*/ /** */
1+
/** @publicapi @module ng1 */ /** */
52
import { StateDeclaration, _ViewDeclaration, IInjectable, Transition, HookResult } from '@uirouter/core';
63

74
/**

src/legacy/resolveService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @module ng1 */ /** */
1+
/** @publicapi @module ng1 */ /** */
22
import { StateObject, PathNode, ResolveContext, Obj, mapObj, resolvablesBuilder } from '@uirouter/core';
33
import * as angular from 'angular';
44

src/legacy/stateEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* angular.module("myApplication", ['ui.router', 'ui.router.state.events']
1717
* ```
1818
*
19-
* @module ng1_state_events
19+
* @publicapi @module ng1_state_events
2020
*/ /** */
2121
import { ng as angular } from '../angular';
2222
import { IScope, IAngularEvent, IServiceProviderFactory } from 'angular';

src/locationServices.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
/**
2-
* @internalapi
3-
* @module ng1
4-
*/ /** */
1+
/** @publicapi @module ng1 */ /** */
52
import { LocationConfig, LocationServices, UIRouter, ParamType, isDefined } from '@uirouter/core';
63
import { val, createProxyFunctions, removeFrom, isObject } from '@uirouter/core';
74
import { ILocationService, ILocationProvider, IWindowService } from 'angular';
85

96
/**
107
* Implements UI-Router LocationServices and LocationConfig using Angular 1's $location service
8+
* @internalapi
119
*/
1210
export class Ng1LocationServices implements LocationConfig, LocationServices {
1311
private $locationProvider: ILocationProvider;

src/services.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
*
77
* The optional [[$resolve]] service is also documented here.
88
*
9-
* @module ng1
10-
* @preferred
11-
*/
12-
/** for typedoc */
9+
* @preferred @publicapi @module ng1
10+
*/ /** */
1311
import { ng as angular } from './angular';
1412
import {
1513
IRootScopeService,

0 commit comments

Comments
 (0)