| 1. |
Explain About Standard Plugins? |
|
Answer» Standard Plugins : If you are using default configuration, standard set of plugins will be available. defaultBindingLanguage() − This plugin that offers an easy way to CONNECT view-model with view. You already saw one way data-binding syntax (${someValue}). Even though you could use some other binding LANGUAGE, it is recommended practice to use default binding language. defaultResources() − Default resourses gives us some primitive constructs like if, repeat, compose etc. You can even build these constructs on your own, but since they are so commonly used, Aurelia already created it inside this LIBRARY. Router() − Most of the applications use some kind of routing. That is why Router is a PART of the standard plugins. You can check more about routing in one of our next chapters. History() − History plugin is usually used together with router. eventAggregator() − This plugin is used for cross component communication. It handles publishing and subscribing to messages or CHANNELS inside your app. Standard Plugins : If you are using default configuration, standard set of plugins will be available. defaultBindingLanguage() − This plugin that offers an easy way to connect view-model with view. You already saw one way data-binding syntax (${someValue}). Even though you could use some other binding language, it is recommended practice to use default binding language. defaultResources() − Default resourses gives us some primitive constructs like if, repeat, compose etc. You can even build these constructs on your own, but since they are so commonly used, Aurelia already created it inside this library. Router() − Most of the applications use some kind of routing. That is why Router is a part of the standard plugins. You can check more about routing in one of our next chapters. History() − History plugin is usually used together with router. eventAggregator() − This plugin is used for cross component communication. It handles publishing and subscribing to messages or channels inside your app. |
|