I may be missing something, but why not use `@ngenerate` here?