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’;
}
}
```
|
||
|---|---|---|
| .. | ||
| benchmarks | ||
| change_detection | ||
| core | ||
| di | ||
| examples | ||
| facade | ||
| rtts_assert | ||
| test_lib | ||