Framework7 seems to constraint me to set a route
variable. But I need its just
1 - listen clicks
2 - make ajax request and
3 - push the new view with some transition I would have defined.
Lets's assume this link <a href="/users/5/profile">My profile</a>
.
I need to make an ajax request on click and display the content as a new view.
I would think of this following code:
// binding logic would be here
app.request.get('/users/5/profile', function (data) {
console.log(data); // I need data is displayed as a new view
});