/app/assets/javascripts/components/taskList.coffee angular.module('app').component 'taskList', templateUrl: 'taskList.html' controller: 'TaskCtrl' bindings: project: '=' /app/assets/javascripts/controllers/comment.coffee angular.module('app').controller 'TaskCtrl', [ '$scope', 'TaskResource' , ($scope, TaskResource) -> console.log this.project # есть this.something_this = "something" $scope.something_scope = "something" ] /app/assets/javascripts/templates/projectList.html.slim task-list [project="project"] /app/assets/javascripts/templates/taskList.html.slim .task-controller p {{ $ctrl.project.id }} // есть p {{ $ctrl.something_this }} //пусто, почему? p {{ something_scope }} // есть
The same problem persists if the controller is attached to the view directly via the ng-controller
return
to what function? - Grundy