Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit 92e201b

Browse files
author
pkempenaers
committed
Fix example documentation for preselected values
1 parent 7b75178 commit 92e201b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/app/main/main.template.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,14 @@ <h3>Code</h3>
618618
// HTML
619619
<div ng-dropdown-multiselect options="example6data" selected-model="example6model" extra-settings="example6settings"></div>
620620

621-
// JavaScript $scope.example6model = [{id: 1}, {id: 3}]; $scope.example6data = [ {id: 1, label: "David"}, {id: 2, label: "Jhon"}, {id: 3, label: "Danny"}]; $scope.example6settings = {};
621+
// JavaScript
622+
$scope.example6data = [
623+
{ id: 1, label: 'David' },
624+
{ id: 2, label: 'Jhon' },
625+
{ id: 3, label: 'Danny' }
626+
];
627+
$scope.example6model = [$scope.example6data[0], $scope.example6data[2]];
628+
$scope.example6settings = {};
622629
</div>
623630
</div>
624631
</div>

0 commit comments

Comments
 (0)