mercredi 6 mai 2015

How to call the route from the controller?

i have a controller called applicatoin.js in that i have done below code :

setSectionAppForEmailPDF:function(currentCompnay,CurrentProperty,currentSection,currentPage)  
{  
     this.set("currentPage", currentPage);  
     var that = this;  
     this.set('currentSection', currentSection);
     var path = "/" + currentCompnay + "/" +     CurrentProperty+"/"+currentSection; // Path == '/trilok/pathak Test/section'
     this.transitionToRoute(path);  //does not call the route ,not working
     //this.transitionTo(path);     //does not call the route ,not working
        //this.transitionToRoute('routename', {
        //    queryParams: {
        //        currentCompnay: currentCompnay,
        //        currentProperty: CurrentProperty,
        //        currentSection: currentSection,
        //        currentPage: currentPage
        //    }
        //});                    //does not call the route ,not working
}

from all defined as well as the commented code i am not able to call the route

can any one tell me that what and where i am going wrong ??




Aucun commentaire:

Enregistrer un commentaire