Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

yo angular:controller with camelcase controller name #462

Closed
zdwolfe opened this issue Nov 14, 2013 · 2 comments
Closed

yo angular:controller with camelcase controller name #462

zdwolfe opened this issue Nov 14, 2013 · 2 comments

Comments

@zdwolfe
Copy link

zdwolfe commented Nov 14, 2013

yo angular:controller AuthWidget

Creates files app/scripts/controllers/AuthWidget.js and test/spec/controllers/AuthWidget.js, however the controller is named Authwidget, which is not case sensitive to the name I defined.

'use strict';

angular.module('myApp')
  .controller('AuthwidgetCtrl', function ($scope) {
    $scope.awesomeThings = [
      'HTML5 Boilerplate',
      'AngularJS',
      'Karma'
    ];
  });

Perhaps there should be a case sensitive/insensitive option for generators?

@eddiemonge
Copy link
Member

#463

@reneolivo
Copy link

Can't we just leave the case as defined by the user? please? :)

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

No branches or pull requests

3 participants