Closed schmod closed 8 years ago
It doesn't just crash with an illegal declaration, unfortunately. The following code also caused this issue for me (I wrote it out of laziness..)
const components = {
someName: someComponentObject
}
const ngModule = angular.module('components', [])
Object.keys(components).forEach((name) => ngModule.component(name, components[name]))
@danpantry I've fixed things so your example no longer crashes, but you're definitely going to need to add explicit annotations to that source for it to be annotated.
This example shouldn't need any annotations at all - components cannot be annotated as they are just objects. controllers of components, sure
True! But those controllers are indeed going to need explicit annotations.
An "illegal" component declaration causes the plugin to crash and exit. We should tolerate this gracefully.
causes the plugin to exit with: