Using a CLI helps initialize projects, generate template codes and reduce development time.
ng-zorro-antdscaffolding is essentially based on schematics.
Initialize A Project#
Initialize a project with
Run the command
ng add ng-zorro-antd under your project directory, and follow the options to configure settings including whether you want to import i18n files and stylesheets, and load initial modules.
In the meantime, you can choose an existing project template while creating your project, and then develop the project on the basis of it.
ng add ng-zorro-antd [options]
There are template source codes under every component API show case, you may obtain these codes by expanding
ng g ng-zorro-antd:[schematic] <name> [options]
For example, you can generate a login form with the follow command.
ng g ng-zorro-antd:form-normal-login login