Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
#cleanup: Convert trivial uses of host: const { ... } to `@HostBind…
Browse files Browse the repository at this point in the history
…ing`.

This is a no-op, but I may not have changed _all_ of the host bindings or listeners in this CL (please await upcoming CLs). The `host: const { ... }` syntax is deprecated.

PiperOrigin-RevId: 197008374
  • Loading branch information
matanlurey committed May 17, 2018
1 parent 6a1ece0 commit 626ab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _goldens/test/_files/change_detection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import 'package:angular/angular.dart';
@Component(
selector: 'CheckOnce',
template: '<div>CheckOnce</div>',
host: const {'[id]': 'id'},
changeDetection: ChangeDetectionStrategy.CheckOnce,
)
class CheckOnceComponent {
@HostBinding('id')
String id;
}

Expand Down

0 comments on commit 626ab65

Please sign in to comment.