i am new to angular js. Having some troubles solving this problem.
suppose i have this :
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.num = ["1", "2", "3","toto","5","6","toto","7"];
});
how do i make an iteration so that all the 'toto' are removed from the list and it returns the array without the 'toto'. I have tried using filter but it is not working. how can i do this by using filter? Thanks
A little help please.