fix(examples): make them work with noImplicitAny
and declarations:true
This commit is contained in:
parent
1a035a0dc7
commit
0b9425bbb4
@ -11,7 +11,7 @@ declare var expect: any;
|
|||||||
|
|
||||||
// TODO (juliemr): remove this method once this becomes a protractor plugin
|
// TODO (juliemr): remove this method once this becomes a protractor plugin
|
||||||
export function verifyNoBrowserErrors() {
|
export function verifyNoBrowserErrors() {
|
||||||
browser.manage().logs().get('browser').then(function(browserLog) {
|
browser.manage().logs().get('browser').then(function(browserLog: any[]) {
|
||||||
var errors: any[] = [];
|
var errors: any[] = [];
|
||||||
browserLog.filter(logEntry => {
|
browserLog.filter(logEntry => {
|
||||||
var msg = logEntry.message;
|
var msg = logEntry.message;
|
||||||
|
@ -36,9 +36,9 @@ export class NestedFormGroupComp {
|
|||||||
email: new FormControl()
|
email: new FormControl()
|
||||||
});
|
});
|
||||||
|
|
||||||
get first() { return this.form.get('name.first'); }
|
get first(): any { return this.form.get('name.first'); }
|
||||||
|
|
||||||
get name() { return this.form.get('name'); }
|
get name(): any { return this.form.get('name'); }
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
console.log(this.first.value); // 'Nancy'
|
console.log(this.first.value); // 'Nancy'
|
||||||
|
@ -30,7 +30,7 @@ export class SimpleFormGroup {
|
|||||||
last: new FormControl('Drew'),
|
last: new FormControl('Drew'),
|
||||||
});
|
});
|
||||||
|
|
||||||
get first() { return this.form.get('first'); }
|
get first(): any { return this.form.get('first'); }
|
||||||
|
|
||||||
onSubmit(): void {
|
onSubmit(): void {
|
||||||
console.log(this.form.value); // {first: 'Nancy', last: 'Drew'}
|
console.log(this.form.value); // {first: 'Nancy', last: 'Drew'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user