MarketedProgramService.getMarketedPrograms().then(function( programs ) {
$scope.programs = [];
var userPrograms = $filter("filter")( programs,
MarketedProgramService.userHasAccessToProgram.bind( null, UserProfile ) );
//userPrograms.unshift( defaultProgram );
// Exclude FirstComp/Maverick programs
angular.forEach( userPrograms, function( program ) {
if( program.mbu != "FC" ) {
$scope.programs.push( program );
}
});
});
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/10/18/how-to-merge-multiple-auto-search-fields-into-one-in-angular/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment