Skip to content

Instantly share code, notes, and snippets.

@miguelplazasr
Created January 31, 2018 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelplazasr/53ef2165cddb80a1323f0aefa03f6381 to your computer and use it in GitHub Desktop.
Save miguelplazasr/53ef2165cddb80a1323f0aefa03f6381 to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
import { BaseCrud } from '../../../main-classes/crud';
// Services
import { ApiRestService } from '../../../services/api-rest.service';
// Model
import { Port } from '../../../models/port.model';
@Component({
selector: 'app-ports',
templateUrl: './ports.component.html'
})
export class PortsComponent extends BaseCrud {
end_point: string = '/ports';
entities:any [];
entity: Port = new Entity();
constructor( protected _apiRest: ApiRestService ) {
super( '/ports', _apiRest, new Entity() )
}
resetEntity() { this.entity = new Entity(); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment