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 = [...] ] 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo