I have a downgraded angular 2 component that works fine in an AngularJS component until I remove the single quotation marks around the component's second property.
EDIT: This filetype this component is used in is ng.jade .
This works:
user-score-component(
[rating-score]="user.ratingScore"
'[form-is-disabled]'="false"
'(on-change)'="onRatingScoreChange($event)"
)
This doesn't:
user-score-component(
[rating-score]="user.ratingScore"
[form-is-disabled]="false"
'(on-change)'="onRatingScoreChange($event)"
)
In the second example, false is applied to rating-score
and form-is-disabled
is undefined. I am fine leaving the single quotes around form-is-disabled
but after some research on hybrid apps I haven't been able to figure out what the single quotes are doing here.
Why are they needed on the second property (form-is-disabled
) but not the first (rating-score
)?