Permalink
Browse files

Rename AngularControllerAs to lower case

  • Loading branch information...
1 parent e3c27a0 commit 8d61331f3d651e6b7763e605d464b951f7e33f5a @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -95,7 +95,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:AngularControllerAs](#angularcontrolleras)
+* [aspnet:angularcontrolleras](#angularcontrolleras)
* [aspnet:AngularDirective](#angulardirective)
* [aspnet:AngularFactory](#angularfactory)
* [aspnet:AngularModule](#angularmodule)
@@ -150,13 +150,13 @@ Produces `filename.js`
[Return to top](#top)
-### AngularControllerAs
+### angularcontrolleras
Creates AngularJS controller file using `Controller As` syntax.
Example:
```
-yo aspnet:AngularControllerAs filename
+yo aspnet:angularcontrolleras filename
```
Produces `filename.js`
@@ -2,7 +2,7 @@ Description:
Creates a new AngularJS Controller file using `Controller As` syntax.
Example:
- yo aspnet:AngularControllerAs filename
+ yo aspnet:angularcontrolleras filename
This will create:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'AngularControllerAs.js',
+ 'angularcontrolleras.js',
'.js', {
namespace: this.namespace()
}
View
@@ -5,7 +5,7 @@ Description:
Subgenerators:
yo aspnet:angularcontroller [options] <name>
- yo aspnet:AngularControllerAs [options] <name>
+ yo aspnet:angularcontrolleras [options] <name>
yo aspnet:AngularDirective [options] <name>
yo aspnet:AngularFactory [options] <name>
yo aspnet:AngularModule [options] <name>
View
@@ -207,30 +207,30 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');
});
- describe('aspnet:AngularControllerAs without extension', function() {
+ describe('aspnet:angularcontrolleras without extension', function() {
var arg = 'HomeController';
var filename = 'HomeController.js';
- util.goCreateWithArgs('AngularControllerAs', [arg]);
+ util.goCreateWithArgs('angularcontrolleras', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /vm.title/);
});
- describe('aspnet:AngularControllerAs with extension', function() {
+ describe('aspnet:angularcontrolleras with extension', function() {
var filename = 'HomeController.js';
- util.goCreateWithArgs('AngularControllerAs', [filename]);
+ util.goCreateWithArgs('angularcontrolleras', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /vm.title/);
});
- describe('aspnet:AngularControllerAs in cwd of project.json', function() {
+ describe('aspnet:angularcontrolleras 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('AngularControllerAs', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('angularcontrolleras', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /vm.title/);
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');

0 comments on commit 8d61331

Please sign in to comment.