Open mlegenhausen opened 8 years ago
Shouldn't you use it like below?
...
@Input() value;
...
Input
and any other decorator returns metadata Function
i think...
Nice hint I forgot the ()
.
Did that fix it or is it still a bug?
The change was introduced to babel-transform-decorators-lagacy here: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/commit/9eefc328e3044e8a1bca0e829b8b18d1b90280e2
I don't think it is a bug it seems to a feature, but when following the documentation of ng-forward you get an error. I will open an issue at babel-transform-decorators-lagacy.
There is already an issue loganfsmyth/babel-plugin-transform-decorators-legacy#14.
Using
It should be document that you get an error if you try to assign to an input property without an default value: