Login
Remember
Register
Ask a Question
Why are the square brackets used in the following string?
0
votes
asked
Dec 8, 2023
in
Angular
by
GeorgeBell
Why are the square brackets used in the following string?
@Directive({
selector: '[mwFavorite]'
})
1. so the selector can find a match on an element attribute
2. to call on multiple instances of the same component type
3. so Angular can find a match and apply the directive
4. to repeat markup when looping over some data
angularjs-inteview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 8, 2023
by
GeorgeBell
Correct answer is :-so the selector can find a match on an element attribute
...