Answer the question
In order to leave comments, you need to log in
Angular. How to call a function from a template on page load?
The question is quite simple. I change page title from template like this
<a (click)="mySetTitle( 'my new title' )">set title</a>.
<div (load)="mySetTitle( 'my new title' )"></div>.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question