Visit my blog or connect with me on Twitter
git init
or
| app.factory('ArrayService', function(){ | |
| return { | |
| deleteElement: function(array, element) { | |
| var index = array.indexOf(element); | |
| if(index == -1){ | |
| return false; | |
| } | |
| array.splice(index, 1); |
Visit my blog or connect with me on Twitter
git init
or