angular.dart how to create a custom component programmatically and add to page?
问题 Is it possible to define an angular-dart component and then programmatically create an instance of that component and add it to your web page? I'd hoped there might be something like: import 'package:web_sandbox/web_sandbox.dart'; import 'package:angular/angular.dart' as ng; void main() { document.body.appendHtml('<web-sandbox-component></web-sandbox-component>'); var node = document.body.query('web-sandbox-component'); ng.compile(node); } is there away of creating an angular web component