#47 Custom Attribute Directive | Creating & Using Custom Directive | A Complete Angular Course
ฝัง
- เผยแพร่เมื่อ 15 ก.ย. 2024
- In this lecture, you are going to learn how to create and use a custom attribute directive in Angular. As we have learned an attribute directive changes the appearance or behavior of a DOM element. For example - ngStyle, ngClass & ngModel are some of the attribute directive. We are going to create one such attribute directive in this lecture.
ASP.NET Core GitHub Repo: github.com/man...
NODE JS Course GitHub Repo: github.com/man...
ANGULAR 16 Course GitHub Repo: github.com/man...
I like the way you teach, bro. Your channel will grow.
Well explained, great explaination
Thank you so much! Repeating really helps to memorize
Awesome tutorial 🔥🔥
Very Well Explained.
Very helpful
@procademy, i cannot find the ANGULAR-EKART MODULE in the git repository
please update the complete repository
Where is the code for Video 47? I am not seeing it in the repo.
sir, why not use a css class to change the background? what is the advantage over a class by using a custom directive.?
Optimistically, fantastic news - the confirmation of your Sales Incentive payment has been processed!
Do you plan to create Rxjs and NgRx course? Would be a great addition
This angular series is awesome :)
Name of the VSCode theme please :D
He's using the Monokai theme!!
first, thanks for this great series, in 16:17 you are talking about the variable defined in the constructor.
from my work and search I found I can use the var of constructor inside the component without the need to assign it to another Vars. are there the same?
That is a typescript feature I have already covered in one of the lectures in the dependency injection section.
can component use custom directive ?
In angular 17 there is no modules.ts and when I am importing the background directive in the component it is not working how to fix it
From angular 17, Angular uses statndalone component by default. And in standalone components, app.module is not required. I have not covered standalone components yet...i am going to cover it in future lectures. But for now, try creating an angular project using following angular cli command: ng new project-name --no-standalone. This will create a regular angular project with app.module.
Please update the git with the code @@procademy
Do this in angular17