Zizzamia / ng-tasty

A tasty collection of reusable UI components for Angular, like grandma used to make. Like Table directive, WebSocket / Debounce / Throttle service, Range / Camelize / Slugify filters
MIT License
435 stars 64 forks source link

hi there, I am using ngTasty in a directive, but complains that $scope.init is undefined #question #170

Open firecentaur opened 9 years ago

firecentaur commented 9 years ago

hi there, I am using ngTasty in a directive, but the code is complaining that that $scope.init is undefined even though I have defined it:

Here is the directive gist: https://gist.github.com/anonymous/d2e7302cf4de0dd0d622 and here is the html that lists the directive: https://gist.github.com/anonymous/d9c2cf0df69a89c1a932

Zizzamia commented 9 years ago

I'm a little bit lost, can I see your template folder/templates/folderVideoListDirective.html

violetlight commented 8 years ago

I am having the same issue. Trying to use ngTasty in a directive and it complains that $scope.init is undefined. Were you ever able to figure this out, firecentaur?

Zizzamia commented 8 years ago

Can you please show me the code you are using it.

violetlight commented 8 years ago

Hey, Zizzamia. Thanks for the quick reply.

I needed server side pagination and I ended up going with another solution (ui-grid). Unfortunately, I rolled back the commits that contained the code I was using while experimenting with ng-tasty.

I realize how obnoxious it is that I can't supply the code anymore, because we are unable to completely rule out any superficial errors like syntax, improper injection, etc. I feel confident that I had all of my ducks in a row, but I understand the value of providing the actual source code for a problematic issue.

Though I have decided to go with a different solution for my immediate problem, I am very impressed with ng-tasty. Your examples are so clear and there isn't any noise. I was able to get everything set up very quickly except that I encountered this issue. I would love to figure it out what the problem was and have an answer here for anyone else who may encounter this situation.

My code was extremely simple, so I should be able to recreate the problem easily. If you are interested, I am happy to attempt to recreate the issue and post the source or a JSFiddle some time tomorrow, but the issue is resolved for me personally.

Zizzamia commented 8 years ago

Happy to hear in the end you find a way to solve your problem :-) ui-grid it's a great choice.

If you can recreate the bug, will be amazing for all the #ngTasty community :-) Thanks