i'm migrating over code, and i have several custom made coffeescript files (ie that aren't part of the angular framework).. take a look at an example here.
If i put this file under the app/scripts folder.. I immediately get an error at the top: Uncaught syntaxError: illegal return statement.
how do i make it run? or does all my javasctript/coffeescript have to be part of the angular framework?
Is the error giving you a line number? Adding coffeescript shouldn't be an issue. I would try removing the last return, thought, that might be the issue.
i'm migrating over code, and i have several custom made coffeescript files (ie that aren't part of the angular framework).. take a look at an example here.
If i put this file under the app/scripts folder.. I immediately get an error at the top: Uncaught syntaxError: illegal return statement.
how do i make it run? or does all my javasctript/coffeescript have to be part of the angular framework?