-
Notifications
You must be signed in to change notification settings - Fork 198
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
implement code documentation and JavaScript™ Closures #118
Open
WnP
wants to merge
6
commits into
cgross:master
Choose a base branch
from
WnP:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
51589e5
implement code documentation and JavaScript™ Closures
chaahk 9a5069f
update package.json and correct file permissions
chaahk dd05db7
oops
chaahk d795c69
fix jshint syntax warning
chaahk cecb3e2
oops, forgot this one
chaahk 61f2ad5
fix module must be initialize before creating routes
chaahk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
angular.module('<%= appname %>').directive('<%= _.camelize(name) %>', function() { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
/** | ||
* <%= name %> Directive | ||
* @namespace Directives | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
}, | ||
templateUrl: '<%= htmlPath %>', | ||
link: function(scope, element, attrs, fn) { | ||
/* | ||
* @name <%= _.camelize(name) %> | ||
* @desc | ||
* @param none | ||
* @returns directive object | ||
* @memberOf Directives | ||
*/ | ||
function <%= _.camelize(name) %>() { | ||
return { | ||
restrict: 'EA', | ||
replace: true, | ||
scope: { | ||
|
||
}, | ||
templateUrl: '<%= htmlPath %>', | ||
link: function(scope, element, attrs, fn) { | ||
|
||
} | ||
} | ||
}; | ||
}); | ||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.directive('<%= _.camelize(name) %>', <%= _.camelize(name) %>); | ||
|
||
})(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
angular.module('<%= appname %>').directive('<%= _.camelize(name) %>', function() { | ||
return { | ||
restrict: 'A', | ||
link: function(scope, element, attrs, fn) { | ||
/** | ||
* <%= name %> Directive | ||
* @namespace Directives | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
/* | ||
* @name <%= _.camelize(name) %> | ||
* @desc | ||
* @param none | ||
* @returns directive object | ||
* @memberOf Directives | ||
*/ | ||
function <%= _.camelize(name) %>() { | ||
return { | ||
restrict: 'EA', | ||
link: function(scope, element, attrs, fn) { | ||
|
||
} | ||
} | ||
}; | ||
}); | ||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.directive('<%= _.camelize(name) %>', <%= _.camelize(name) %>); | ||
|
||
})(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
angular.module('<%= appname %>').filter('<%= _.camelize(name) %>', function() { | ||
return function(input,arg) { | ||
return 'output'; | ||
/** | ||
* <%= name %> Filter | ||
* @namespace Filters | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
/* | ||
* @name <%= _.camelize(name) %> | ||
* @desc | ||
* @param none | ||
* @returns filter function | ||
* @memberOf Filters | ||
*/ | ||
function <%= _.camelize(name) %>() { | ||
return function(input, arg) { | ||
return 'output'; | ||
}; | ||
}); | ||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.filter('<%= _.camelize(name) %>', <%= _.camelize(name) %>); | ||
|
||
})(); |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){ | ||
/** | ||
* <%= name %> Controller | ||
* @namespace Controllers | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
}); | ||
/* | ||
* @name <%= _.camelize(ctrlname) %> | ||
* @desc | ||
* @param $scope | ||
* @returns none | ||
* @memberOf Controllers | ||
*/ | ||
function <%= _.camelize(ctrlname) %>($scope){ | ||
|
||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>); | ||
|
||
})(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,47 @@ | ||
angular.module('<%= _.camelize(name) %>', ['ui.bootstrap','ui.utils','<%= routerModuleName %>','ngAnimate']); | ||
/** | ||
* <%= name %> Module | ||
* @namespace Modules | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
angular | ||
.module('<%= _.camelize(name) %>', ['ui.bootstrap','ui.utils','<%= routerModuleName %>','ngAnimate']); | ||
<% if (!uirouter) { %> | ||
angular.module('<%= _.camelize(name) %>').config(function($routeProvider) { | ||
/* | ||
* @name <%= _.camelize(name) %>Route | ||
* @desc defined route for module <%= name %> | ||
* @param $routeProvider | ||
* @returns none | ||
* @memberOf Modules | ||
*/ | ||
function <%= _.camelize(name) %>Route($routeProvider) { | ||
|
||
/* Add New Routes Above */ | ||
|
||
/* Add New Routes Above */ | ||
} | ||
|
||
angular | ||
.module('<%= _.camelize(name) %>') | ||
.config(<%= _.camelize(name) %>Route); | ||
<% } %> | ||
<% if (uirouter) { %> | ||
/* | ||
* @name <%= _.camelize(name) %>Route | ||
* @desc defined route for module <%= name %> | ||
* @param $stateProvider | ||
* @returns none | ||
* @memberOf Modules | ||
*/ | ||
function <%= _.camelize(name) %>Route($stateProvider) { | ||
|
||
}); | ||
<% } %><% if (uirouter) { %> | ||
angular.module('<%= _.camelize(name) %>').config(function($stateProvider) { | ||
/* Add New States Above */ | ||
|
||
/* Add New States Above */ | ||
} | ||
|
||
}); | ||
angular | ||
.module('<%= _.camelize(name) %>') | ||
.config(<%= _.camelize(name) %>Route); | ||
<% } %> | ||
})(); |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){ | ||
/** | ||
* <%= ctrlname %> Controller | ||
* @namespace Controllers | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
}); | ||
/* | ||
* @name <%= _.camelize(ctrlname) %> | ||
* @desc | ||
* @param $scope | ||
* @returns none | ||
* @memberOf Controllers | ||
*/ | ||
function <%= _.camelize(ctrlname) %>($scope){ | ||
|
||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>); | ||
|
||
})(); |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
angular.module('<%= appname %>').factory('<%= _.camelize(name) %>',function() { | ||
/** | ||
* <%= name %> Factory | ||
* @namespace Factories | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
/* | ||
* @name <%= _.camelize(ctrlname) %> | ||
* @desc | ||
* @param none | ||
* @returns factory object | ||
* @memberOf Factories | ||
*/ | ||
function <%= _.camelize(name) %>() { | ||
|
||
var <%= _.camelize(name) %> = {}; | ||
|
||
return <%= _.camelize(name) %>; | ||
}); | ||
} | ||
|
||
angular | ||
.module('<%= appname %>') | ||
.factory('<%= _.camelize(name) %>', <%= _.camelize(name) %>); | ||
|
||
})(); |
Empty file.
Empty file.
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roses are red, violets are blue, first indentations use spaces others should too 😉