I am new to ionic and i am attempting to set up routes for the ionic tabs template. I am confused as to whether i need to look into lazy loading for nested routes or if i can set individual routes for each tab (home, about contact). If its the latter, then how do i get the link to change with the tab. In my node route i currently have my routes set up, respective to the tab, like:
app.get(’/home’, function(req, res) {
console.log(req.params);
console.log(“I’m in HOME!”);
res.json({“success”: true});
});
in home.ts i attempt to make a request for node with :
this.http.get(this.url, JSON.stringify(data)).map(res => res.json()).subscribe(response => {
console.log(‘GET Response:’, response);
});