0 votes
in Angular by

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

1 Answer

0 votes
by
Correct answer is :-so the selector can find a match on an element attribute
...