It's exact question as asked for AngularJS here. I want to be able to do routing with a character thats not #
, Is this possible with Angular.Dart?
Asked
Active
Viewed 293 times
1
1 Answers
0
feel free to use html library with angular, it is comptiable
import 'dart:html';
main(){
applicationFactory().addModule(new MyAppModule()).run();
document.querySelector("a").onClick.listen((MouseEvent e){
String uri=(e.currentTarget as Element).attributes["href"];
if(uri.contains("html")){
window.location.replace(uri);
}
});
}
or better solution: use _self