# Category: jquery

## How to set checked property of checkboxes based on value from database using angular js

I have a group of checkboxes which are populated dynamically from database using AngularJs. Now, on edit I want to check the checkboxes whose value is stored in database. Below is the sample code: <div class=”row” > <div class=”col-sm-2″> <label>Select Metal :</label><label style=”color:red”>*&nbsp;</label> </div> <div class=”col-sm-8″> <div ng-repeat=”names in MetalTypes” class=”checkbox-inline” id=”MetalDiv” style=”font-size: larger; margin-left: 20px !important; margin-top: -10px !important;”> <div style=”margin:10px 10px 10px; margin-left:-16px;”> <input type=”checkbox” value=”{{names.Id}}” ng-model=”names.SELECTED” ng-checked=”object[names.Id]” ng-true-value=”‘Y'” ng-false-value=”‘N'” style=”margin-top:2px;” ng-change=”getSelectedMetal()” />{{names.Name}} […]

## How to crop color portion from image canvas?

I am working on ionic based application. I want to functionality like user has Filled the red color on image(canvas) with finger. So I have done the filled functionality but I want to crop the Filled portion from canvas. I have attached one image for reference. I want to crop red portion from above image. I has googling but not found any solution. Source: AngularJS

## Expand-Collaspe Using Angular ng-grid

Hello I am trying to create a grid which expand/collaspe row when click on the column data. My grid is look like First show only first column data and all other column data is blank but their header are show. Next when click on ‘+’ icon of first column then in next row it is expand and second column data is show and all remaing are blank. Next when click on ‘+’ icon of second […]