I am new in angular,
I want to check if condition like channel=='new' and wanna print "will be available asap"
<div ng-repeat="channel in channels">
<label>
<input type="checkbox" ng-model="answer.content.args.channels[channel]"> {{channel}}
</label>
</div>
And i have tried to solve it using ng-if="channel == 'new'" , but it's not working for me.
<label ng-if="channel === 'new'">Will be available asap</label><label ng-if="channel !== 'new'"> your checkbox</label>. The error in your ng-if is that you are assigning channel to 'new' (since you are using=while you need, instead, to compare it to a value.