<form class="f" method="POST" action="/backtoNode">
1.in app.js file
server.get('/test', (request, responce)=>{
responce.render('TestRender');
});
2. in router.js
module.exports=define(["jquery", "underscore","backbone", "/public/javascripts/client_View/view.js"], function($, _, Backbone, fsfile){
var aa= Backbone.Router.extend({
routes: {
":page" : "app"
},
app:function(){
console.log("inside route");
var a = new fsfile;
a();
}
});
var initialize = function () {
var aaa = new aa();
Backbone.history.start();
}
return{
intialize: intitialize
};
});
3.how to combine app.js and router.js 4. how to call router using redirect in node js
via eswara prasad
No comments:
Post a Comment