を発見angularJS
していますが、エラーが発生しますArgument 'LawContrl' is not a function, got undefined
。私form
の中で、私は自分のレールアプリに持っています
%div{"ng-controller" => "LawContrl"}
=form-for ...
%li{"ng-repeat"=>"entry in entries"} {{entry.name}} //I am using haml file
私のlaws.js.coffeeファイルには、
@LawContrl = ($scope) ->
$scope.entries = [
{ name: "hi"}
{name: "ho"}
]