These are chat archives for angular/angular-2-ionic-2

24th
Jun 2016
Martin S.
@wurtzelsepp
Jun 24 2016 09:59

hi folks i got a question: I would like to insert som Javscripts dynamically so i created a SafeScript Objekt like

scriptCode: string = <script>function huha() {alert('Me esta Evil')}</script>;
this.dangerousCode = sanitize.bypassSecurityTrustScript(this.scriptCode);

but here is the question. How to use now the dangerousCode element?