📜  ng generate service - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:43.880000             🧑  作者: Mango

代码示例6
ng generate interface   [options]
ng g interface   [options]

#     The name of the interface.
#     Adds a developer-defined type to the filename, in the format "name.type.ts".
# [options]
#    --lintFix=true|false    When true, applies lint fixes after generating the interface (Default: false)
#    --prefix=prefix            A prefix to apply to generated selectors
#    --project=project        The name of the project.

# e.g.
# ng generate interface Itest sometype        generates file name        itest.sometype.ts