-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.3.1 enhanced composer create-project + added angular filter
- Loading branch information
Jad Joubran
committed
Aug 7, 2015
1 parent
5c1c1a1
commit 43da344
Showing
7 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function(){ | ||
"use strict"; | ||
|
||
angular.module('app.filters').filter( 'humanReadable', function(){ | ||
return function humanize(str) { | ||
if ( !str ){ | ||
return ''; | ||
} | ||
var frags = str.split('_'); | ||
for (var i=0; i<frags.length; i++) { | ||
frags[i] = frags[i].charAt(0).toUpperCase() + frags[i].slice(1); | ||
} | ||
return frags.join(' '); | ||
}; | ||
}); | ||
})(); |
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
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,4 @@ | ||
{ | ||
"version": "2.2.3", | ||
"devDependencies": { | ||
"gulp": "^3.9.0", | ||
"laravel-elixir": "^2.0.0", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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