Last active
August 29, 2015 14:13
-
-
Save pedantix/b37294cb722ee3f32024 to your computer and use it in GitHub Desktop.
Dynamic Templating in Angular.Dart 1.0.0
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
@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