Login
Remember
Register
Ask a Question
What is the code for creating a decorator?
0
votes
asked
Jan 6, 2020
in
Angular
by
sharadyadav1986
What is the code for creating a decorator?
#decorator-code
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 6, 2020
by
rajeshsharma
We create a decorator called Dummy:
function Dummy(target) {
dummy.log('This decorator is Dummy', target);
}
...