I'm encountering an issue where the array of selected devices is not getting the values when attempting to add multiple devices to a group. Can someone identify the problem or suggest an alternative method? I referred to http://www.dotnetawesome.com/2015/12/multiselect-dropdown-with-checkbox-in-angularjs.html as a reference for the service I developed.
Below is the Angular code snippet:
// Angular module and controller initialization
var MyApp = angular.module('MyApp', ['ui.bootstrap', 'angularjs-dropdown-multiselect']);
MyApp.controller('GroupsController', ['GroupsService', '$scope', '$log', '$uibModal',
function (GroupsService, $scope, $log, $uibModal) {
// Controller logic goes here...
}]
Here's the view code snippet:
// HTML view code
@model List<NetworkCafe.Models.DeviceGroup>
<style>
// CSS styling goes here...
</style>
<link rel="stylesheet" href="../Content/font-awesome.min.css">
<div class="container" style="width:90%" ng-app="MyApp" ng-controller="GroupsController">
// HTML structure continues...
</div>
@section scripts{
// JavaScript scripts imports go here...
}