MCPcopy Index your code
hub / github.com/angular-ui/ui-router / fromString

Method fromString

src/templateFactory.ts:92–94  ·  view source on GitHub ↗

* Creates a template from a string or a function returning a string. * * @param template html template as a string or function that returns an html template as a string. * @param params Parameters to pass to the template function. * * @return {string|object} The template html as a str

(template: string | Function, params?: RawParams)

Source from the content-addressed store, hash-verified

90 * string.
91 */
92 fromString(template: string | Function, params?: RawParams) {
93 return isFunction(template) ? (<any>template)(params) : template;
94 }
95
96 /**
97 * Loads a template from the a URL via `$http` and `$templateCache`.

Callers 1

fromConfigMethod · 0.95

Calls 1

isFunctionFunction · 0.50

Tested by

no test coverage detected