Guest User

Untitled

a guest
Jan 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. const aoRoutes: Routes = [
  2. {
  3. path: "",
  4. redirectTo: "/ao/list",
  5. pathMatch: "full"
  6. },
  7. {
  8. path: "ao",
  9. component: AppelOffreComponent,
  10. children: [
  11.  
  12. {
  13. path: "list",
  14. component: ListAoComponent,
  15. children: [
  16.  
  17. {
  18. path: "edit/:ao_id",
  19. component: EditAoComponent
  20. },
  21. ..
  22. ];
  23.  
  24. this._aoService
  25. .updateAO(appelOffre)
  26.  
  27. .subscribe(success => {
  28. this.statusCode = success;
  29. this.loading = false;
  30. }, error => (this.statusCode = error));
  31.  
  32. this.router.navigate(["../../"], { relativeTo: this.route });
Add Comment
Please, Sign In to add comment