MCPcopy
hub / github.com/angular-ui/ui-router / state

Method state

src/stateProvider.ts:261–269  ·  view source on GitHub ↗
(name: any, definition?: any)

Source from the content-addressed store, hash-verified

259 state(name: string, definition: Ng1StateDeclaration): StateProvider;
260 state(definition: Ng1StateDeclaration): StateProvider;
261 state(name: any, definition?: any) {
262 if (isObject(name)) {
263 definition = name;
264 } else {
265 definition.name = name;
266 }
267 this.stateRegistry.register(definition);
268 return this;
269 }
270
271 /**
272 * Registers an invalid state handler

Callers 15

viewHookSpec.tsFile · 0.80
stateEventsSpec.tsFile · 0.80
stateSpec.tsFile · 0.80
resolveSpec.tsFile · 0.80
$LocationProviderFunction · 0.80
$LocationProviderFunction · 0.80
$LocationProviderFunction · 0.80

Calls 2

registerMethod · 0.80
isObjectFunction · 0.50

Tested by

no test coverage detected