The Smart Form provides a container for other SmartComponents NG2 components. The Smart Form declares the Type Script controller class that should handle events raised by the components.
<smart-form smart-controller="CustomerController" smart-template-url="<template_url>"></smart-form> |
<smart-form smart-controller="CustomerController" [smart-template]="customerFormTemplate"></smart-form> |
Attribute | Description |
---|---|
smart-controller | The name of the Smart Controller that the form should use. A built-in |
smart-template-url | The URL from which the form should fetch it's template |
[smart-template] | Bindable property that can be used to set the form's template dynamically |