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.
Sample markup
Code Block |
---|
|
<smart-form smart-controller="CustomerController" smart-template-url="<template_url>"></smart-form> |
Code Block |
---|
|
<smart-form smart-controller="CustomerController" [smart-template]="customerFormTemplate"></smart-form> |
Description
Attribute | Description |
---|
smart-controller | The name of the Smart Controller that the form should use. A built-in DefaultFormController is provided if no additional functionality is required. |
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 |