I'd like to pass a string value to a component in angular2, but it doesn't work with the default binding. I'm thinking of something similar to this:
<component [inputField]="string"></component>
Unfortunately, only expressions are allowed on the right side of the assignment. Is there a way to do this?
String literals can be passed in different ways:
<component inputField="string"></component>
<component [inputField]="'string'"></component>
<component inputField="{{'string'}}"></component>