In this example we can show the color picker based on the value of isColorpicker
variable with ng-model
directive which will set the value of checkbox to isColorpicker
variable.If isColorpicker
is true then color picker will show. Here is the code for ng-if ng-if="isColorPicker"