Skip to content

Instantly share code, notes, and snippets.

@thosakwe
Created November 7, 2017 17:50
Show Gist options
  • Save thosakwe/c3057234aa24b45388151016d422a6bc to your computer and use it in GitHub Desktop.
Save thosakwe/c3057234aa24b45388151016d422a6bc to your computer and use it in GitHub Desktop.
Example Angular component
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'];
}
<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