I want to try create a singular page app. On Dart website explain only routing with AngularDart. Honestly if use Dart with AngularDart, it's better use simply Angular without dart.
So I try to create this one page app with
HttpRequest Class
button.onClick.listen((e){
HttpRequest.getString("test.html").then((html){
querySelector(".container").innerHtml = html;
});
});
In my test.html I write only <h1>test page</h1>
That's work!!! But how do modify url? I try with History class (like javascript) and work fine: my website from www.mysite.com, become www.mysite.com/test
But if I insert www.mysite.com/test in url input of browser give me 404 Error.
Route package for dart it's discontinued since 5 years. (https://github.com/justinfagnani/route)