I would like to use the console.log inside the inline template but can\'t find any directions.
@Component({
selector:\"main\",
providers: [ItemService],
te
Better way to do it :
This way you can access all the console properties on template side
Component side :
export class AppComponent {
console = console;
}
Template Side :
{{ console.log('----------------> Logging') }}
{{ console.warn('----------------> Warning') }}
{{ console.error('----------------> error') }}
WORKING DEMO