Tag: angularjs-directive

54 votes
19 answers
2.1K views
How to use a keypress event in AngularJS?

I want to catch the enter key press event on the textbox below. To make it more clear I am using a ng-repeat t

avatar
Rudy
0 1 0 9
asked 07 September, 2021
52 votes
7 answers
2.2K views
When to favor ng-if vs. ng-show/ng-hide?

I understand that ng-show and ng-hide affect the class set on an element and that ng-if controls whether an el

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
67 votes
6 answers
3K views
Link vs compile vs controller

When you create a directive, you can put code into the compiler, the link function or the controller. In the

avatar
Elicia
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.6K views
How to set focus on input field?

What is the 'Angular way' to set focus on input field in AngularJS? More specific requirements: Wh

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
3.1K views
What is the difference between '@' and '=' in directive scope in AngularJS?

I've read the AngularJS documentation on the topic carefully, and then fiddled around with a directive. H

avatar
Luis
0 1 0 9
asked 07 September, 2021