Created
November 7, 2017 17:50
-
-
Save thosakwe/c3057234aa24b45388151016d422a6bc to your computer and use it in GitHub Desktop.
Example Angular component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:angular/angular.dart'; | |
@Component(selector: 'foo-cmp', templateUrl: 'foo_cmp.html') | |
class FooComponent { | |
String name = 'Bob'; | |
List<String> colors = ['red', 'blue', 'green', 'fuchsia']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello, {{name}}!</h1> | |
<ul> | |
<li *ngFor="let color of colors;">{{ color }}</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment