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

Function html5Compat

test/util/testUtilsNg1.ts:117–119  ·  view source on GitHub ↗
(html5mode)

Source from the content-addressed store, hash-verified

115}
116
117export function html5Compat(html5mode) {
118 return angular.isObject(html5mode) && html5mode.hasOwnProperty('enabled') ? html5mode.enabled : html5mode;
119}
120
121/**
122 * The ng1 $exceptionHandler from angular-mocks will re-throw any exceptions thrown in a Promise.

Callers 2

stateSpec.tsFile · 0.90
urlRouterSpec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected