Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need help #4

Open
malina opened this issue Feb 12, 2015 · 3 comments
Open

I need help #4

malina opened this issue Feb 12, 2015 · 3 comments

Comments

@malina
Copy link

malina commented Feb 12, 2015

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?

@pencilcheck
Copy link
Owner

Which version are you on?

@malina
Copy link
Author

malina commented Feb 13, 2015

ng_classify (0.1.4)

@pencilcheck
Copy link
Owner

That's interesting. It is most likely an upstream issue as all this gem is doing is require and call the method to transform.

Upstream is here https://github.com/CaryLandholt/ng-classify

I will keep this open until the one upstream is fixed as well.

For now, please try 0.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants