Angular2 write on console from template click event
You would have to declare a property that can access the console object in the component ts code then call that. For example...
Declare in your component ts...
public c : any;
In the component constructor set the property to the console object...
this.c = console;
In your view you can now call info()...
<a (click)="this.c.info("Hello world")">click me</a>