fix(forms): remove deprecated forms APIs (#10624)

BREAKING CHANGE:

The deprecated forms APIs in @angular/common have been removed. Please update to the new forms API in @angular/forms. See angular.io for more information.
This commit is contained in:
Kara
2016-08-11 20:40:46 -07:00
committed by vikerman
parent 3466232f8b
commit 7606c96c80
49 changed files with 52 additions and 6818 deletions

View File

@ -431,8 +431,8 @@ export function main() {
fixture.detectChanges();
tick();
form.find('login').valueChanges.subscribe(
() => { expect(form.find('login').dirty).toBe(true); });
form.get('login').valueChanges.subscribe(
() => { expect(form.get('login').dirty).toBe(true); });
const loginEl = fixture.debugElement.query(By.css('input')).nativeElement;
loginEl.value = 'newValue';
@ -460,10 +460,10 @@ export function main() {
loginEl.value = 'newValue';
dispatchEvent(loginEl, 'input');
expect(form.find('login').pristine).toBe(false);
expect(form.get('login').pristine).toBe(false);
form.find('login').valueChanges.subscribe(
() => { expect(form.find('login').pristine).toBe(true); });
form.get('login').valueChanges.subscribe(
() => { expect(form.get('login').pristine).toBe(true); });
dispatchEvent(formEl, 'reset');
});