Комментарии:
So angular is javaScript but without people debating weather or not it is a "TRUE" object-oriented language?
Ответитьproperty needs to be set: dateMessage: string | undefined; to avoid this error: ' Property 'dateMessage' has no initializer and is not definitely assigned in the constructor'
ОтветитьI did the same thing as you, but got this error
Property 'dateMessage' has no initializer and is not definitely assigned in the constructor
Thank you very much! Appreciated
Ответитьwill this code instantiate constructor again and again?
ОтветитьHow can i get some DOM information, if async comes undefined?
Ответитьشكرا
Ответить.toLocaleTimeString() is not giving time in AM /PM so please help
Ответитьlike always, thx for your tutorials
ОтветитьAsync???
ОтветитьWhen I tried to create a new method inside the component class and put the same functionality as mentioned in the fat arrow function, it is not recognizing this keyword. Why is it so?
constructor() {
setInterval(updateTime(),1000)
}
updateTime(){
let currentDate = new Date();
this.dateMessage = currentDate.toDateString()+ ' '+ currentDate.toLocaleTimeString();
}
Can someone please answer this?
Hello professor.
Could you explain to me what 'this.' mean in this context? Thank you!