I created a service that annotated with @Injectable like the following
@Injectable
class HeroService {
val heroes: js.Array[Hero] = js.Array(
Hero(11, "Mr. Nice"),
Hero(12, "Narco")
)
}
it generated annotation.js which contains HeroService.parameters = [[]];.
It seems to be unnecessary and cause an exception.
EXCEPTION: Cannot resolve all parameters for '$c_LHeroService'(?). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '$c_LHeroService' is decorated with Injectable.
when I manually remove the line from annotation.js It performed well.
I created a service that annotated with
@Injectable
like the followingit generated
annotation.js
which containsHeroService.parameters = [[]];
. It seems to be unnecessary and cause an exception.when I manually remove the line from
annotation.js
It performed well.