Command ionic creation instruction is to be executed :( in the root directory of the project)
ionic g directive command name
For example, execute the following command:
ionic g directive my-test
After the successful implementation of the project will be created in the root directory of directives / my-test folder, not directives, then automatically creates,
Creating attribute selectors command is:
selector: '[my-test]'
In the template can be called by the validator-username-exist = "..." way,
Instruction class name created is MyTestDirective,
At the same time automatically imported directives / directives.module.ts