It's time for another Angular Knowledge Pill! π It takes just 10 seconds to learn something new π₯ Like taking your morning vitamins π
When you use [input]="value"
then Angular interprets the value as an expression. So you can place there a variable reference from the component or even mathematic formula. When you use input="value"
then the value is interpreted as a string! Take a look at the example:
If you would like to receive this kind of knowledge pills directly into your mailbox, subscribe at https://angular-academy.com/blog/. I will be sending them regularly! Remember, it just takes 10 seconds to learn something new!