मैं अपने ऑब्जेक्ट से प्राप्त मूल्य के आधार पर डिफ़ॉल्ट रेडियोधटन के रूप में चिह्नित करने की कोशिश कर रहा हूं, कोई भी सही या गलत हो सकता है। विकल्प के आधार पर डिफ़ॉल्ट रेडियोधटन के रूप में चिह्नित करने के लिए मैं कैसे कर सकता हूं?कोणीय 4 डिफ़ॉल्ट रेडियो बटन डिफ़ॉल्ट द्वारा जांच
<label>This rule is true if:</label>
<label class="form-check-inline">
<input class="form-check-input" type="radio" name="mode"
value="true" [(ngModel)]="rule.mode"> all the following conditions are true
</label>
<label class="form-check-inline">
<input class="form-check-input" type="radio" name="mode" value="false" [(ngModel)]="rule.mode"> at least one of the following conditions is true
</label>
मैं सच है या झूठा मिला: "rule.mode"
[attr.checked] = "role.mode" –
@BharatChauhan यह एक सही जवाब, 'केवल-init' एक मूल्य स्थापित करने के लिए एकदम सही है। धन्यवाद! – CularBytes