I'm using Angular 14. I want to create a project where I can house common models and services used by other projects. I ran this command to create the scaffolding
$ ng generate library my-lib
This produced a directory structure that included
- tsconfig.json
- angular.json
- package.json
- package-lock.json
+ projects
+ + my-lib
+ src
...
How do I generate a model class within that? I tried the below
$ ng generate class=my-lib --type=model --project=my-lib/
An unhandled exception occurred: Schematic "class=my-lib" not found in collection "@schematics/angular".
See "C:\temp\ng-iUC12U\angular-errors.log" for further details.
but I'm not sure what this error means or if I'm even generating a model the right way.