1

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?

Community
  • 1
  • 1
adarshaj
  • 1,224
  • 1
  • 11
  • 24

1 Answers1

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

Community
  • 1
  • 1
kao peter
  • 86
  • 1
  • 5