Angular Multi Select Drop Down Options

Angular Multi Select Drop Down Options

Today, We want to share with you Angular Multi Select Drop Down Options.
In this post we will show you Angular Multi Select Drop Down Options, hear for Angular Multi Select Drop Down Options we will give you demo and example for implement.
In this post, we will learn about Angular Multi Select Drop Down Options with an example.

We can simple use ng-model Directive to create multi-select dropdown list.This directive takes an list of array of value/label objects and all formats data them as a display drop down list where all one or more multiple options can be selected for user with angularjs.Pure simple AngularJS directive data which creates a select dropdown button with multiple option or single selections data.

READ :  Angular count array of total items in object

AngularJS Dropdown Multiselect List of Features

  • In angular,Based on Bootstrap’s dropdown supported.
  • In angular,jQuery is not necessary.
  • In angular,Seperated your simple data list and the selection all data. no any modification to the data made.
  • In angular,Built-in search supported.
  • In angular,Complete control on the selected all one or more items model to fit it to your requirements.
  • In angular,Two view options selected: normal list and all checkboxes.
  • In angular,Pre-selected values.
  • In angular,Limit selection count.
  • In angular,Grouping items by property.
  • In angular,Callback events supported.

Multi Select Drop Down List Example



<title>AngularJS Multi Select Drop Down Options | Multi Select Drop Down List Directive For AngularJS - Angular Script</title>
 <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>
 
var infinityknowApp = angular.module("infinityknowApp", []);
 infinityknowApp.controller("ngfreeCtrl", function($scope) {
 $scope.selected = [
        {id:1, name:"Laravel"}
    ];
    
    $scope.totalselecteditem = [];
    
    $scope.$watch('selected', function(valselect){
        $scope.totalselecteditem = [];
        if( ! valselect ){
            return;
        }
        angular.forEach(valselect, function(data){
            $scope.totalselecteditem.push( data.id.toString() );
        });
    });

});
 

  
<div>  
<div>  
 <label>Select Total Items Display:</label><hr>
    
        Laravel
        Angularjs
        PHP
        VueJs
    
	<p>
    <pre> totalselecteditem = {{totalselecteditem}}</pre>
	</p>
</div>  
</div> 
  
       

Download

READ :  what is Angular 2 and Difference between Angular 1 VS Angular 2

Leave a Reply

Your email address will not be published. Required fields are marked *