Questions tagged [custom-directive]
64 questions
-1
votes
1 answer
"Error: [$parse:syntax] Syntax Error: Token '{' invalid key at colum 2" in custom directive when using scope @
I'm getting a custom directive from some library who has implimented directive as below:
var directive = {
restrict: 'E',
replace: true,
scope: {
size: '@',
id: '@toggleId',
…

Akhilesh Kumar
- 9,085
- 13
- 57
- 95
-1
votes
1 answer
angular custom directive for two dynamic html elements
I have to create an elemental custom directive which will consist of two html elements. first one is radio button group with values yes or no. no is default. if yes is clicked on , and input text field should be displayed. I should be able to keep…

learning developer
- 429
- 2
- 6
- 10
-2
votes
1 answer
What is Exported Directive Context in angular?
I'm new to angular, while learning angular from it's offical docs I didn't get what is a directive context and a exported directive context.
Can anyone please help me out what is it and how it works...
Thank you in advance.

Jay Bansod
- 29
- 4
-2
votes
1 answer
How to repeat and render array of custom directive in another custom directive?
I have three custom directive child1, child2, child3 and I want to repeat from contoller in ng-repeat using another custom directive.

Mr. Raj Kale
- 87
- 1
- 1
- 7