Skip to content

Instantly share code, notes, and snippets.

@pedantix
Last active August 29, 2015 14:13
Show Gist options
  • Save pedantix/b37294cb722ee3f32024 to your computer and use it in GitHub Desktop.
Save pedantix/b37294cb722ee3f32024 to your computer and use it in GitHub Desktop.
Dynamic Templating in Angular.Dart 1.0.0
@NgComponent(
selector: 'my-component',
template: '<div ng-include="{{cmp.templateURL}}"></div>',
publishAs: 'cmp'
)
class MyComponent {
String get templateURL => 'packages/project/components/my_component.html';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment