refactor(forms): upgrade to @angular/forms

This commit is contained in:
Adam Bradley
2016-06-30 21:54:48 -05:00
parent 9b2f4a682e
commit 4d56219a4c
42 changed files with 219 additions and 249 deletions

View File

@ -1,5 +1,5 @@
import { Component, ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, Output, Optional, QueryList, Renderer, ViewEncapsulation } from '@angular/core';
import { NgControl } from '@angular/common';
import { NgControl } from '@angular/forms';
import { isPresent, isTrueProperty } from '../../util/util';
@ -152,8 +152,8 @@ export class SegmentButton {
* </ion-segment>
*
* <!-- Segment in a form -->
* <form [ngFormModel]="myForm">
* <ion-segment ngControl="mapStyle" danger>
* <form [formGroup]="myForm">
* <ion-segment formControlName="mapStyle" danger>
* <ion-segment-button value="standard">
* Standard
* </ion-segment-button>