Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit ff01de2

Browse files
committed
Fix Lambda Provider bug
Issue with providing with lambda: angular/angular-cli#3707
1 parent 4a20666 commit ff01de2

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/app/_external/nested-form-control/nested-form-control.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div fxLayout="row" class="grid--hor--2">
22
<div fxFlex="2 0 400px" class="grid__el">
3-
<div lazyForm [formGroup]="control" (ngSubmit)="onSubmit()" novalidate>
3+
<div lazyForm [formGroup]="control" novalidate>
44
<lazy-selector [value]="value.firstName" [metadata]="value.metadata('firstName')"></lazy-selector>
55
<lazy-selector [value]="value.lastName" [metadata]="value.metadata('lastName')"></lazy-selector>
66
<lazy-selector [value]="value.age" [metadata]="value.metadata('age')"></lazy-selector>

src/app/_frameworks/validation-messages/validation-messages.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class ValidationMessagesService {
1616
}
1717

1818
static provide(repository?: ValidationMessagesRepository) {
19-
return { provide: ValidationMessagesService, useFactory: () => new ValidationMessagesService(repository) };
19+
return { provide: ValidationMessagesService, useFactory() { return new ValidationMessagesService(repository); }};
2020
}
2121

2222
getFirst(control: AbstractControl): string {

src/app/decorators-form-example/decorators-form-example.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {UserModel} from './model';
88
styleUrls: ['./decorators-form-example.component.scss']
99
})
1010
export class DecoratorsFormExampleComponent {
11-
1211
form = new FormGroup({});
1312
model = new UserModel({lastName: 'This value is predefined'});
1413

src/app/nested-form-example/nested-form-example.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h3>Nested Form Example</h3>
22
<div fxLayout="row" class="grid--hor--2">
33
<div fxFlex="2 0 400px" class="grid__el">
4-
<form lazyForm [formGroup]="form" (ngSubmit)="onSubmit()" novalidate>
4+
<form lazyForm [formGroup]="form" novalidate>
55
<lazy-selector [value]="model.title" [metadata]="model.metadata('title')"></lazy-selector>
66
<lazy-selector [value]="model.userModel" [metadata]="model.metadata('userModel')"></lazy-selector>
77
<button type="button" class="btn btn-danger" (click)="testFormReset()">Test Reset</button>

0 commit comments

Comments
 (0)