Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nexeuz/f5f7b0fdfc00cbaced91b9ae49f2443f to your computer and use it in GitHub Desktop.
Save Nexeuz/f5f7b0fdfc00cbaced91b9ae49f2443f to your computer and use it in GitHub Desktop.
My frist gist
ngOnInit() {
this.createForm();
this.tipoIdentifacion$ = this._selects.getTipodeId();
const url = `${ AppConfig.API_DOMAIN }:${ AppConfig.PORT }/${ ConfigAdmin.ZONE_PREFIX }/company/${ AppConfig.COMPANY_ID }/politic/current`;
this._currentPolitic.getCurrentPolitic(url)
.subscribe(data => {
this.idPolitic = data.id;
this.idFilePolitic = data.fileId;
}, err => {
this.textButton = 'GUARDAR';
this.form.disable();
console.error('No es posible recuperar la política activa');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment