Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Router.map(function() {
  2. this.route('exception');
  3. this.route('index', { path: '/' });
  4.  
  5. this.route("login");
  6.  
  7. this.route('change-sets', { path: 'change-sets' });
  8. this.route('change-set', { path: 'change-sets/:id' });
  9. });
  10.  
  11. http://127.0.0.1:8000/api/change-set/change-set/250/document/3/
  12.  
  13. downloadChangeSet() {
  14. var changeSet = get(this, 'changeSet');
  15. var csID = changeSet.id;
  16. var link = "http://demo-box:8000/api/change-set/change-set/"+csID+"/document/3/";
  17. console.log(changeSet.id);
  18. window.open(link, "_self");
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement