ruby on rails - controller not recognized - angularJS -
i have angular controller have
@myangular = ($scope) -> $scope.my = [...] @myangular.$inject = ["$scope"]
i message error : argument 'myangular' not function, got undefined
. in view, have %div{"ng-controller" => "myangular"}
i found posts , nothing did trick
ok got i, put in more cleaner way
app = angular.module "myapp", [] app.controller 'myangular', ['$scope', ($scope) -> $scope.my = [...] ]