Created
October 11, 2018 22:36
-
-
Save Nexeuz/f5f7b0fdfc00cbaced91b9ae49f2443f to your computer and use it in GitHub Desktop.
My frist gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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