javascript

  • To evaluate angular expression we use {{}} – clmlbx 1 hour ago
  • still not right, I don’t want $index value, instead I want to use $index to access dynamic variable, that is in sync with my isolated scope variable.
  • count0 will be dynamically created, it can count or count40 in parent controller, I want that variable to be 2 way binded to isolated scope variable “duration” so when I change value of duration in my directive it is reflected on count{{$index}} – clmlbx 1 hour ago
  • To set the time you need to pass JSON with keys like Days, hours and minutes.
  • I have made a custom directive to have set a duration(days hours minutes) in input box.

I have made a custom directive to have set a duration(days hours minutes) in input box. It is more like Expected time Taken. Now it is work as it should.
To set the time you need to pass JSON with keys like Days, hours and minutes.

@soiqbot: How to use $index in isolated scope?

#javascript #angularjs #json

I have made a custom directive to have set a duration(days hours minutes) in input box. It is more like Expected time Taken. Now it is work as it should. To set the time you need to pass JSON with keys like Days, hours and minutes.

But Now I want to make copies but variables are dynamic so I am trying to use $index from ng-repeat, but I am not getting $index value in my directive instead it comes as undefined.

code:

javascript

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.