Angular 5 Tutorial in Hindi Part 15: Angular 5 NgStyle in Hindi | NgStyle Directive in Angular 5
Автор: Thapa Technical
Загружено: 2018-07-09
Просмотров: 4573
Описание:
Welcome all, we will see Angular 5 ngStyle in Hindi | NgStyle Directive in Angular 5 in Hindi.
The NgStyle directive lets you set a given DOM elements style properties.
There are a ton of options to style our components using ngClass and ngStyle, so it's important to know which one to use when and why. Here is a short summary:
most styles can be added simply to the HTML directly, for those we can simply add them to the class property, and no special Angular functionality is needed
Many state styles can be used using browser-supported pseudo-class selectors such as :focus, we should prefer those conventional solutions for those cases
for state styles that don't have a pseudo-class selector linked to it, its best to go with ngClass
if the ngClass expressions get too big, it's a good idea to move the calculation of the styles to the component class
only for situations where we have a dynamically calculated embedded style should we use ngStyle, this should be rarely needed
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
Don't Forget to Follow me on all Social Network,
Instagram Link: / vinodthapa55
Facebook Link: / vinodthapa55
Twitter Link: / vb55thapa
Facebook ThapaTechnical Page Link: / vinodbahadur. .
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: