last day (14 days later) »
developer10
07:53
hey
Marc Kline
hi. can you put the code you have now in a pastebin
pastebin.com
of course you can do unlisted
developer10
pastebin.com/YrYkheJC
note that even $scope.formBusy = false is not being picked up so my form stays dimmed (busy looking)
Marc Kline
when you log from inside the $q.all callback, do you see that output?
in other words, is it resolving?
developer10
if i alert a string from there (q.all callback) it will fire
but if i console.log ($scope.c) it's undefined
Marc Kline
how about when you log scope.c just after
$scope.c = data;
in the first promise
or even better after the foreach loop
developer10
08:05
hmm
before the loop it give me object
after the loop, nothing, not even undefined
maybe the foreach is not necessary
interesting
i just commented out that loop and
the damned thing is shown as supposed
let me see if
it will misfire
Marc Kline
it could make sense, if you're setting $scope.c to data, which may not be an array
developer10
works nice... i have the same service and the same directive but in another controller (without $q.all applied) so i'll do the same there and see
Marc Kline
and if it isn't an array, you try to push to it in the loop
cool. yeah it should do the trick but let me know. for now, going to bed because it's late here.
developer10
with $q.all not a single misfire ( i called it like that, makes sense to me)
the other one - misfires occasionally like before
Marc Kline
awesome
developer10
08:11
(with the loop commented out)
so i'd say you solved the problem :)
Marc Kline
haha. good. sorry i had you make the demo. in the end i just had to read your question a 5th or 6th time
developer10
thank you. good night, i will accept your answer
Marc Kline
great. thanks. glad it worked. good luck on the rest of your project
good night
developer10
bye
last day (14 days later) »
all rooms
Transcript for
May '14
31
Jun
14
Directive with isolate scope property
…
stackoverflow.com/questions/23961807/…
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile