Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

30 lignes
1.1 KiB

  1. import { Component, OnInit } from '@angular/core';
  2. import { ShippingCompanyJsonld, ShippingCompanyService } from "@app/core/api/v1";
  3. import { AppHelperService } from "@app/_helpers/app-helper.service";
  4. import { ActivatedRoute } from "@angular/router";
  5. import { FormMode } from "@app/_components/_abstract/abstract-data-form-component";
  6. @Component({
  7. selector: 'app-shipping-company-detail',
  8. templateUrl: './shipping-company-detail.component.html'
  9. })
  10. export class ShippingCompanyDetailComponent implements OnInit {
  11. protected shippingCompany!: ShippingCompanyJsonld;
  12. protected readonly FormMode = FormMode;
  13. constructor(
  14. private shippingCompanyService: ShippingCompanyService,
  15. protected appHelperService: AppHelperService,
  16. private route: ActivatedRoute
  17. ) {}
  18. ngOnInit() {
  19. this.route.params.subscribe(params => {
  20. this.shippingCompanyService.shippingCompaniesIdGet(params['id']).subscribe(
  21. data => {
  22. this.shippingCompany = data;
  23. }
  24. );
  25. });
  26. }
  27. }