Skip to content

Instantly share code, notes, and snippets.

@pablotolentino
Last active March 24, 2021 05:11
Show Gist options
  • Save pablotolentino/e9ba049cd5364de759a4b95b610af407 to your computer and use it in GitHub Desktop.
Save pablotolentino/e9ba049cd5364de759a4b95b610af407 to your computer and use it in GitHub Desktop.
obtener versión de ejecución
export class AppComponent implements OnInit {
private config: {version: string};
ngOnInit() {
this.config = require('./../assets/config.json');
console.log(this.config.version);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment