Within my component, I have defined a property that is linked to the UI.
Component
export class MyComponent implements OnInit {
public propertyA: string;
public propertyB: string;
}
UI
<textarea matInput rows="10"
placeholder="Body" [(ngModel)]="formData.propertyA"
[ngModelOptions]="{standalone: true}"></textarea>
How can I achieve something like this:
export class MyComponent implements OnInit {
public propertyA: string = "Some text with {{propertyB}} bound.";
public propertyB: string;
}
Essentially, I want propertyA to be bound to the textbox, and nested within propertyA is the value of propertyB, which updates dynamically based on another databinding.