We just launched Dev Academy Podcast ๐ŸŽ™๏ธ
Discover expert talks with industry leaders
LISTEN ON SPOTIFY

Angular Input Syntax

This is Angular Knowledge Pill - short and concise article! ๐Ÿ’Š
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 the bottom of the page. I will be sending them regularly! Remember, it just takes 10 seconds to learn something new!

Subscribe to Dev Academy

Join over 6000 subscribers that receive latest knowledge and tips!

    By submitting this form you agree to receive emails with news, promotions and products and you accept Privacy Policy.