Sunday, 18 August 2013

rails views not rendering angularJS

rails views not rendering angularJS

I have a controller my_controller and in view/my/new.html.haml, I render
some form with :
= form_for ...
...
%div{"ng-controller" => "myangular"}
%div{"ng-repeat"=>"me in my"} {{me.someme}}
and in assets/javascript/my.js.coffee @myangular = ($scope) -> $scope.my =
[...]
The problem is that {{me.someme}} is not processed and is displayed as
such. Could someone help

No comments:

Post a Comment