0.0.4 • Published 5 years ago

plaveoo-component v0.0.4

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Plaveoo Custom schema

This is a custom schematics project to generate two components with service and interface.

Testing

What is that?

Usage

  1. Create a json with the same name as you want for the component in the projects app folder. The name_of_the_component.json should look something like this:
[
    {
        "name": "id",
        "type": "string",
        "default": "''",
        "required": true
    }, {
        "name": "name",
        "type": "string",
        "default": "''",
        "required": true
    }, {
        "name": "year",
        "type": "number",
        "default": 2018,
        "required": false
    }
]
  1. Run the following command to generate the component:
ng generate plaveoo-component:default-component --name=name_of_the_component