Can anyone tell me whats wrong in my coede:
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'package:angular/routing/module.dart';
class myApp extends Module {
myApp() {
bind(RouteInitializerFn, toValue: initRoutes);
}
}
void initRoutes(Router router, RouteViewFactory views) {
views.configure({
'new': ngRoute(path: '/new', view: 'new.html'),
'demohome': ngRoute(path: '/list', view: 'list.html')
});
}
main() {
var module = new Module()
..bind(myApp);
applicationFactory().addModule(module).run();
}
the html file is very simple, I just want to test the route, as I noticed many changes happened in this regards: Home New Entry
thanks