-
-
Notifications
You must be signed in to change notification settings - Fork 5
Template
On the wiki page of the AbstractComponent has already been mentioned that this class is a experimental feature.
It can already be used productively, but is expected to receive additional features.
A brief list of all class members with purposes.
Initializes the template with the html passed as first argument. The html can not be changed once the object was created.
A simple getter for the html that was passed as first argument of the constructor.
vars must be an object containing key value pairs of variable names and values.
This method replaces placeholder values inside of the html ("${varName}") with the passed key-value-pairs and then returns the modified html.
The wrappers, which determine what is really a variable, can be customized with the following configuration:
ConfigRegistry.setConfig('template.expressionWrapper',['###','###']);If e.g. this configuration is set, the following marker would be matched this ###variable### will be replaced
- Classes
- Decorators
- CustomEvents
- Helpers
- Interfaces
- Polyfills