mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
refactor(forms): upgrade to @angular/forms
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user