Global

Methods


compile(cacheKey, template, callback)

Compiles the given template (or URI or dom selector)

The callback is fired once the compile completes and has signature callback(err).

Parameters:
Name Type Description
cacheKey
template
callback
Source:

doCompile(cacheKey, html, callback)

Parameters:
Name Type Description
cacheKey
html
callback
Source:

doExecute(cacheKey, model, errorCallback)

Execute a template and hand back a text string.

Parameters:
Name Type Description
cacheKey
model
errorCallback
Source:

execute(cacheKey, model, errorCallback)

Parameters:
Name Type Description
cacheKey
model
errorCallback
Source:

fileExtension()

Hands back the expected file extension for templates loaded via URI.

Source:
Returns:
Type
String

findCacheKeys(viewId)

Acquires an array of cache keys matching the view.

Parameters:
Name Type Description
viewId
Source:

isCached(cacheKey)

Determines whether an existing template is already in cache.

Parameters:
Name Type Description
cacheKey
Source:

onDependencyChange()

Fired when one of our dependents has changed its value.

Source:

subscribe(f)

Registers a handler which acts as a subscriber. When this observable value changes,
the handler method is raised.

Parameters:
Name Type Description
f
Source:

supportedMimetypes()

Hands back the list of associated script tag types for templates loaded from the DOM.

Source:
Returns:
Type
Array