public interface Directive
Modifier and Type | Interface and Description |
---|---|
static class |
Directive.Restrict |
Modifier and Type | Method and Description |
---|---|
void |
compile(JQElement element,
com.asayama.gwt.jsni.client.JSON attrs)
In AngularJS, compile method returns linker function.
|
String |
getName() |
Directive.Restrict[] |
getRestrict() |
com.google.gwt.resources.client.TextResource |
getTemplate() |
String |
getTemplateUrl() |
boolean |
getTransclude() |
void |
link(NGScope scope,
JQElement element,
com.asayama.gwt.jsni.client.JSON attrs) |
NGScope |
scope() |
void |
setName(String name) |
String getName()
boolean getTransclude()
void setName(String name)
Directive.Restrict[] getRestrict()
com.google.gwt.resources.client.TextResource getTemplate()
String getTemplateUrl()
NGScope scope()
void compile(JQElement element, com.asayama.gwt.jsni.client.JSON attrs)
DefaultDirectiveFactory
wraps the call to
link(NGScope, JQElement, JSON)
into a JavaScript function, and
returns that from the JavaScript wrapping of the compile function call.
This means that, unlike AngularJS, we currently do not support compile dependent linker option (i.e. the outcome of compile function cannot return different linker functions).
Copyright © 2014. All rights reserved.