Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagexml
<smart-form smart-controller="CustomerController" smart-template-url="<template_url>"></smart-form>
Code Block
languagexml
<smart-form smart-controller="CustomerController" [smart-template]="customerFormTemplate"></smart-form>

Description

AttributeDescription
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-urlThe 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