{"_id":"55fd9c6f56d6990d00a6caab","user":"54d64e31276f8e0d00feab94","__v":0,"version":{"_id":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"createdAt":"2015-09-19T17:33:33.368Z","releaseDate":"2015-09-19T17:33:33.368Z","categories":["55fd9c6e56d6990d00a6ca9e","55fd9c6e56d6990d00a6ca9f","55fd9c6e56d6990d00a6caa0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.4.0","version":"1.4.0"},"category":{"_id":"55fd9c6e56d6990d00a6ca9f","version":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"pages":["55fd9c6f56d6990d00a6caa9","55fd9c6f56d6990d00a6caaa","55fd9c6f56d6990d00a6caab","55fd9c6f56d6990d00a6caac","55fd9c6f56d6990d00a6caad","55fd9c6f56d6990d00a6caae","55fd9c6f56d6990d00a6caaf","55fd9c6f56d6990d00a6cab0","55fd9c6f56d6990d00a6cab1"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-07T17:51:18.995Z","from_sync":false,"order":1,"slug":"generators","title":"Generators"},"project":"54d64e6b276f8e0d00feab95","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-07T17:52:21.137Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"# Usage\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate directive <name>... [options]\\n$ kick g directive <name>... [options]\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Available Options\",\n  \"body\": \"* --template (-t)\"\n}\n[/block]\n# Description\n\nThis will generate a directive under app/directives folder. It will also generate a unit test. You can pass as many names as you like. You can also generate directives in subdirectories:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate directive pagination users/avatar\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nBy default, directives will be created without a template file. If you want to generate a directive with a template connected to it, you can pass a --template parameter:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate directive pagination --template\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"directive","type":"basic","title":"Directive"}
# Usage [block:code] { "codes": [ { "code": "$ kick generate directive <name>... [options]\n$ kick g directive <name>... [options]", "language": "shell" } ] } [/block] [block:callout] { "type": "info", "title": "Available Options", "body": "* --template (-t)" } [/block] # Description This will generate a directive under app/directives folder. It will also generate a unit test. You can pass as many names as you like. You can also generate directives in subdirectories: [block:code] { "codes": [ { "code": "$ kick generate directive pagination users/avatar", "language": "shell" } ] } [/block] By default, directives will be created without a template file. If you want to generate a directive with a template connected to it, you can pass a --template parameter: [block:code] { "codes": [ { "code": "$ kick generate directive pagination --template", "language": "shell" } ] } [/block]