I'm writing an Angular component that has a property Mode(): string
.
I would like to be able to set this property programmatically not in response to any event.
The problem is that in the absence of a browser event, a template binding {{Mode}}
doesn't update.
Is there a way to trigger this change detection manually?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…