* 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)
| 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`. |
no test coverage detected