Angular.JS and CoffeeScript

1,113 views
Skip to first unread message

sgtpep

unread,
May 22, 2011, 12:23:21 PM5/22/11
to angular
Does anyone have successful experience of integration of the
Angular.JS with the CoffeeScript?

I've just started to learn and use CoffeeScript, and I still wonder
how to mix its code with the plain JS code. But as I see it's possible
in case of jQuery: http://geekiriki.blogspot.com/2010/08/jquery-meets-coffeescript.html.

hookerc...@gmail.com

unread,
May 22, 2011, 6:08:43 PM5/22/11
to ang...@googlegroups.com
I am currently learning Angular using coffeescript; my dev environment is a rails application that compiles the coffee on each request; so far so good; 

Cheers

Igor Minar

unread,
May 23, 2011, 2:41:43 PM5/23/11
to ang...@googlegroups.com
we don't have any experience with integrating CoffeeScript and
angular, but theoretically there shouldn't be any issue as long as
your coffee script code call the right angular apis.

/i

> --
> You received this message because you are subscribed to the Google Groups "angular" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to angular+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/angular?hl=en.
>
>

roytr...@gmail.com

unread,
Aug 28, 2012, 9:50:18 AM8/28/12
to ang...@googlegroups.com, danil...@gmail.com

xrd

unread,
Aug 28, 2012, 11:33:39 AM8/28/12
to ang...@googlegroups.com, danil...@gmail.com
I'm using coffeescript exclusively and loving it. 

If you have specific questions, go ahead and ask them.

The biggest things I have to remember when using coffeescript is to remember to export the controller using @Ctrl = Ctrl (as coffeescript wraps everything in a function closure).

Here is a JSFiddle to get you started.


Chris

Ephraim Mower

unread,
Aug 29, 2012, 9:58:22 AM8/29/12
to ang...@googlegroups.com, danil...@gmail.com
For those using Sublime Text 2 as your editor, there is now a comprehensive package of Angular/CoffeeScript completions/snippets:  https://github.com/EastPoint/Sublime-AngularJS-Coffee-Completions  


On Sunday, May 22, 2011 12:23:21 PM UTC-4, sgtpep wrote:
Reply all
Reply to author
Forward
0 new messages