#53 Conditional Attribute Directive  | Creating & Using Custom Directive | A Complete Angular Course

#53 Conditional Attribute Directive | Creating & Using Custom Directive | A Complete Angular Course

procademy

11 месяцев назад

5,923 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-cz3gq5vp4p
@user-cz3gq5vp4p - 05.11.2023 22:55

THANK YOU FOR THSISS

Ответить
@RodRavenpictures
@RodRavenpictures - 08.09.2023 20:38

When passing the css to styles.css I m encountering specificity issues. I had to use !important to overwrite the component's css styles. Any ideas?

Ответить
@tomail1167
@tomail1167 - 08.09.2023 16:26

About this lecture: I added code in "directive.ts" for disabled click event like this:

constructor(private EleRef: ElementRef, private EleRender: Renderer2) {}
@Input() set DisableProduct(disable: boolean) {
if (disable) {this.EleRender.addClass(this.EleRef.nativeElement,'item-disabled');
this.EleRender.setAttribute(this.EleRef.nativeElement, 'attr.disable', 'false' );} }

and in css ".item-disabled" added: pointer-events: none;

by this way, the disabled click event not working.
in this case: What is the right way?
Please help me understand that.

Ответить
@tomail1167
@tomail1167 - 27.07.2023 23:02

Please Mr. monaj, I have a problem with the terminal in vs code is giving me this message every time: "The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 2." I searched a lot and did not find a solution for it. Please help me with that, thank you.

Ответить
@swethasri2276
@swethasri2276 - 27.07.2023 13:11

Good work sir..pls complete react tutorial playlist also

Ответить
@estherjonathan_
@estherjonathan_ - 27.07.2023 05:21

Fantastic work Sir
Thank you very much 🎉

Ответить
@user-sl6uk7ry3b
@user-sl6uk7ry3b - 27.07.2023 04:28

what is the name of the theme you use ?

Ответить