All Questions
Tagged with coffeescript angular.js
9 questions
0
votes
1
answer
42
views
Abstracting out two lines of code in Coffeescript
I am currently working on refactoring two methods that exist in directives into a service.
This is method one:
...
3
votes
0
answers
52
views
Using Angular directives for connect HTML clicks in buttons and controller actions
I'm trying to improve my Angular directive. I'm pretty new to CoffeeScript, so I think there may be inconsistent code.
...
2
votes
0
answers
883
views
Click interceptor directive
I needed a simple way to add this test to certain click events:
if isUser then fireClickEvent else openSignInModal
So I made this directive:
...
2
votes
0
answers
386
views
Resource that use two different services and query with pagination when resolved
I'm learning Angular and I don't like my current approach. The current controller uses first Geolocation service and when ...
2
votes
1
answer
151
views
Wait for all resources to be loaded
In my application I need some resources to be loaded and I have services to load each of them and then I need some point to know that all requests finished. First thought was to use $q.all with array ...
1
vote
1
answer
1k
views
AngularJS Login Check
I have states that have a requiredlogin object set as true, then I have Angular listen on ...
6
votes
1
answer
193
views
English-Russian irregular words tester
Could you please offer some suggestions about my self learning project?
It is really hard-coded, but I have no idea what to do next. I'm using angular (only few ...
4
votes
0
answers
9k
views
An Object-Oriented Programming pattern for AngularJS models using CoffeeScript classes
Over the past week, we tried to make our AngularJS model layer more powerful and reduce complexity in our controllers and template by using the object-oriented programming pattern and the CoffeeScript ...
0
votes
1
answer
1k
views
coffeescript and angular directive
I feel this is deeply inelegant, but I really want the option of classical inheritance in the future. How could this be written better. FYI animation here is from GSAP if you are curious.
...