87 questions
1
vote
0
answers
81
views
ng-isolate-scope in each child directive along with ng-repeat in AngularJS
The HTML template contains the nested directives. The child directive will create the element or fields based on the data injected to it. So field can be type of dropdown, input field etc. I suspect ...
1
vote
1
answer
1k
views
Flutter & Dart : What is an isolate in flutter?
As I study about flutter, I notices that there is a thing called isolate.
What is it for? And how do we implement that? Can you give me a simple example?
Thank you in advance.
1
vote
1
answer
116
views
Not able to call function when directive loads
I'm working on AngularJS custom directive. I'm trying to call a function as soon as my directive loads.
I tried calling the function within link function, but it's throwing error as TypeError: scope....
0
votes
1
answer
122
views
Same Directives multiple times on a page taking last model value always
I am trying to add a copy icon beside each label to copy the text and my code is like below. I am passing the model value of each label as an input to the directive.
When I am clicking on the copy ...
2
votes
1
answer
98
views
How to Pass parameter from AngularJS Directive to AngularJS controller function
Thanks in advance,Actually I want to call a function in controller from app.Directive, Please anyone let me know How I can call?Also I passing parameter to that function?I'm new in angular and here is ...
1
vote
1
answer
519
views
Access value of a variable of child directive in parent directive
How to access a variable of child directive in parent directive?
I have a parent directive like:
<parent-directive>
<child-directive></child-directive>
</parent-directive>
...
0
votes
1
answer
40
views
How to bind to event.time variable in parent scope from a directive with isolate scope without using $parent in directive?
angular.module('hfp.calendar')
.controller('printPreviewCntrl', ['$scope', 'htmlFromServer',
function($scope, htmlFromServer){
$scope.htmlReceived = htmlFromServer;
...
0
votes
1
answer
143
views
AngularJs: Detect Click on Parent scope from isolated directive
Hi I have an isolated directive. I want to detect if the scope has been clicked on using $scope.$parent object. Is this possible. I am trying to listen to a click event on a parent scope using the ...
2
votes
1
answer
566
views
angularjs directive unit test fail with controllerAs, bindToController & isolateScope()
I am trying to unit test a directive with a two-way bound property (=). The directive works in my app, but I can't get a unit test working that tests the two-way binding.
I have been trying to get ...
4
votes
3
answers
799
views
Isolated scope binding types
According to AngularJS Developer Guide - Directives "Isolating the Scope of a Directive", scope binding can be done in 3 types
=, @ and &
and
according to "Directive Definition Object" ...
0
votes
0
answers
144
views
How to access isolated scope variables from angular components
Considering this situation, where i am relying on fileupload component which is been used in 3 places in the same form distinguished with value binded.
A Total of 3 components in use distinguished ...
0
votes
1
answer
282
views
AngularJs Services with isolated scope
In my Angular app i have a service, that stores a Configuration structure, that is used by various components of my app. In the .run-phase that guiConfigService reads the configurations from a .json ...
0
votes
2
answers
452
views
Nested Directive Not Updating View(DOM) Element in AngularJs
I've made a nested directive, and tried to call it from a html view,but not updating the view element in html.
I can get the updated value from the calling controller but can't see the updated effect ...
0
votes
1
answer
855
views
Directive Parameter Not Initializing on First Load In AngularJs
I'va made a Dropdown directive, i'm trying to assign methods on passing parameter to directive and i'll call these method from controller.
but on first load i'm not getting the assign method in ...
0
votes
0
answers
33
views
angular directive scope got overriden
I am trying to use isolated scope for a directive which is having two way data binding. Please refer my code below:
function singleSelectDropdownList(methodCallHelper, $timeout) {
var ...