I have a component with this class:
export class AppComponent {
show: boolean = false;
toggele(){
alert("Button Pushed");
this.show = !this.show;
}
how do I call toggel(); from a another JavaScript function not in the
component?
How do I make my component accessible to the global scope?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.