Description
Currently, in the API references, there are @Input
and @Output
listed in such a way that seems to take for granted that the reader knows that if there exists an @Input
called x
and an @Output
called xChange
that you should be able to use the banana-in-a-box [(x)]
syntax to do a two way binding. I imagine this is a touchy subject because some will feel that this is obvious, and yet I've been using Angular 2 for a number of months and it was not at all clear to me, even though I've used that syntax with [(ngModel)]
plenty of times.
On the API reference for tabs, it says selectedIndexChange was added to allow for two way binding. I'm sure some people will read that and think "that's abundantly clear", and indeed for some experienced Angular 2 developers, that probably does obviously imply that you can expect to use [(selectedIndex)]
, but I think for other readers it's not so obvious.
This library is advertised on the angular.io page, which makes me think the target audience is just as much novice Angular 2 developers as it is experienced ones. Since this is the case, I think API references should err on the side of being painfully explicit. It should not merely be said that 'two-way binding' is enabled, but explicitly that [(thisSyntax)]
can be used.