Permalink
Browse files

Rename AngularController to lower case

  • Loading branch information...
1 parent 08b4e47 commit e3c27a0cac015e585a11809fe836f4188a46bfd6 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -94,7 +94,7 @@ The list of related generators [can be seen on our Wiki section](https://github.
The alphabetic list of available sub generators (_to create files after the project has been created_):
-* [aspnet:AngularController](#angularcontroller)
+* [aspnet:angularcontroller](#angularcontroller)
* [aspnet:AngularControllerAs](#angularcontrolleras)
* [aspnet:AngularDirective](#angulardirective)
* [aspnet:AngularFactory](#angularfactory)
@@ -137,13 +137,13 @@ The alphabetic list of available sub generators (_to create files after the proj
[Return to top](#top)
-### AngularController
+### angularcontroller
Creates AngularJS controller file using $scope
Example:
```
-yo aspnet:AngularController filename
+yo aspnet:angularcontroller filename
```
Produces `filename.js`
@@ -2,7 +2,7 @@ Description:
Creates a new AngularJS Controller file using $scope.
Example:
- yo aspnet:AngularController filename
+ yo aspnet:angularcontroller filename
This will create:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'AngularController.js',
+ 'angularcontroller.js',
'.js', {
namespace: this.namespace()
}
View
@@ -4,7 +4,7 @@ Description:
Subgenerators:
- yo aspnet:AngularController [options] <name>
+ yo aspnet:angularcontroller [options] <name>
yo aspnet:AngularControllerAs [options] <name>
yo aspnet:AngularDirective [options] <name>
yo aspnet:AngularFactory [options] <name>
View
@@ -178,30 +178,30 @@ describe('Subgenerators without arguments tests', function() {
*/
describe('Subgenerators with named arguments tests', function() {
- describe('aspnet:AngularController without extension', function() {
+ describe('aspnet:angularcontroller without extension', function() {
var arg = 'HomeController';
var filename = 'HomeController.js';
- util.goCreateWithArgs('AngularController', [arg]);
+ util.goCreateWithArgs('angularcontroller', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /\$scope.title/);
});
- describe('aspnet:AngularController with extension', function() {
+ describe('aspnet:angularcontroller with extension', function() {
var filename = 'HomeController.js';
- util.goCreateWithArgs('AngularController', [filename]);
+ util.goCreateWithArgs('angularcontroller', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /\$scope.title/);
});
- describe('aspnet:AngularController in cwd of project.json', function() {
+ describe('aspnet:angularcontroller in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
var arg = 'HomeController';
var filename = 'HomeController.js';
console.log(arg, dir);
- util.goCreateWithArgs('AngularController', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('angularcontroller', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /\$scope.title/);
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');

0 comments on commit e3c27a0

Please sign in to comment.