We are investigating a migration from Backbone to Angular. Because of our design, we only need to migrate the router. I'd like to understand how wildcard routing works for angular. Here is an example of wildcard routing in Backbone:
app.Router = Backbone.Router.extend({
routes: {
'*filter' : 'setFilter'
},
setFilter: function(params) {
//all traffic ends up here. you can grab the url and go.
var url = this.cdn + "templates/" + params + ".html";
...
}
});
app.router = new app.Router();
Backbone.history.start({pushState: true});
What is the angular equivalent for wildcard routing?
How does angular handle push state? Specifically, does it have a way to utilize /pushstate urls when the browser supports pushstate and then automatically roll back to #pushstate hash urls for IE9-
Thanks.