mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This used to be valid code:
```
class Foo {
constructor() {
this.bar = ‘string’;
}
}
```
This will now fail since ‘bar’ is not explicitly
defined as a field. We now have to write:
```
class Foo {
bar:string; // << REQUIRED
constructor() {
this.bar = ‘string’;
}
}
```
|
||
|---|---|---|
| .. | ||
| src/hello_world | ||
| web | ||
| pubspec.yaml | ||