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

Method useHttpService

src/interface.ts:737–737  ·  view source on GitHub ↗

* Forces $templateFactory to use $http instead of $templateRequest. * * UI-Router uses `$templateRequest` by default on angular 1.3+. * Use this method to choose to use `$http` instead. * * --- * * ## Security warning * * This might cause XSS, as $http doesn't enforce the

(useUnsafeHttpService: boolean)

Source from the content-addressed store, hash-verified

735 * @param useUnsafeHttpService `true` to use `$http` to fetch templates
736 */
737 useHttpService(useUnsafeHttpService: boolean);
738}
739
740declare module '@uirouter/core/lib/state/stateRegistry' {

Callers 1

Implementers 1

TemplateFactorysrc/templateFactory.ts

Calls

no outgoing calls

Tested by

no test coverage detected