I'm new to Angular2, so far I have managed to write 5 Min Quickstart .
I want to learn how to use routing in Angular2 and Dart , unfortunately, I have not found a single example on the Internet. most articles talk about routing with typescript, which I could not get to work with the dart.
I am using webstorm with the dart plugin.
import 'dart:html';
import 'package:angular2/angular2.dart';
import 'package:angular2/bootstrap.dart';
import 'package:angular2/router.dart';
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
class AppComponent {}
void main() {
bootstrap(AppComponent);
}
source
share