I just started learning ClojureScript.

It seems my ClojureScript syntax for application module initialisation is not 
correct.

In Javascript, it has to be:

angular.module('F1FeederApp', [
  'F1FeederApp.controllers'
]);


I wrote in ClojureScript:

(.module js/angular "myprooooj" (array "myproj.controllers"))

And I get in JS:

angular.Mb("myprooooj", ["myproj.controllers"]);

This causes an error, since Mb isn't a property of Angular, and I have not idea 
where this comes from.

I looked for an example online, I found e.g. this gist: 
https://gist.github.com/lynaghk/3856153 , which is pretty much the same:

(def todomvc
  "Create a TodoMVC module within Angular.js"
  (.module js/angular "todomvc" (array)))


Same JS, same error:

angular.Mb("todomvc", []);


What am I doing wrong? According to sources I read this syntax should be 
correct.


Thanks.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to