Tech enthusiast studying ICT and graduating soon enoughπ¨πΏβπ. Software Engineer in the making, experimenting my way through life. I'm here to connect, learn from y'all and share my knowledge.ππΏ
Coming from Angular, honestly, I'd use brackets to pass data no matter what. This will allow you to pass a variable assigned in your TS file and remove static strings inside of your HTML. (I don't know if this makes sense to you). Otherwise, I agree with @faraazahmad
.
And the difference between
and
I am on board with @faraazahmad 's example.
For properties I'd go with the non-bracketed
subtitle="test"
for simple stringsSame!! π
Coming from Angular, honestly, I'd use brackets to pass data no matter what. This will allow you to pass a variable assigned in your TS file and remove static strings inside of your HTML. (I don't know if this makes sense to you). Otherwise, I agree with @faraazahmad .
Yes forgot to tell, it's an angular example π