Skip to content

I need help #4

@malina

Description

@malina

Hi.
I'm install this gem.
Create file with extension .coffee.ng-classify, with simple code:

class Home extends Controller
  constructor: ($scope) ->
     $scope.coolMethod = 'Some'

But not work.
In browser console message ' Uncaught ReferenceError: Controller is not defined'.

and js file:

(function() {
  var Home,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    __hasProp = {}.hasOwnProperty;

  Home = (function(_super) {
    __extends(Home, _super);

    function Home($scope) {
      $scope.coolMethod = 'Some';
    }

    return Home;

  })(Controller);

}).call(this);

what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions