Skip to content

Instantly share code, notes, and snippets.

@StephenFluin
Created June 14, 2016 23:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StephenFluin/91c0cd5c9e5b257294eb1daa61fc7acd to your computer and use it in GitHub Desktop.
Save StephenFluin/91c0cd5c9e5b257294eb1daa61fc7acd to your computer and use it in GitHub Desktop.
Try out the latest changes to forms in Angular 2.0.0-rc2
import {disableDeprecatedForms, provideForms} from '@angular/forms';
...
bootstrap(App, [
disableDeprecatedForms(),
provideForms(),
...
]);
...
// Wherever you want to use the new capabilities, import them from @angular/forms
import {REACTIVE_FORM_DIRECTIVES, FormGroup} from '@angular/forms';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment