Last active
January 8, 2016 06:10
-
-
Save mssobhan/47f5593dc10dc5763cf4 to your computer and use it in GitHub Desktop.
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
$scope.substr = function(string, start, end) { | |
return string.substr(start, end); | |
} | |
$scope.split = function(string, nb) { | |
var array = string.split(','); | |
return array[nb]; | |
} | |
/* | |
{{split(string,0)}} | |
{{substr(string,0,4)}} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment