jadjoubran / laravel-ng-artisan-generators

Laravel artisan AngularJS generators
MIT License
90 stars 23 forks source link

ng:component to allow arranging components inside specific directories #38

Open vhanla opened 7 years ago

vhanla commented 7 years ago

Sometimes we end up with a bunch of components, and the list inside app/components/ folder increases and becomes an uncomfortable long list to search them for. So it would be great to organize them inside their own and respective directories, for instance:

/admin/components/admin/ dashboard/dashboard.component.js /admin/components/user/ profile/profile.component.js

Just like ng:page allows to do e.g. php artisan ng:page admin/dashboard which creates a page inside another directory e.g. app/pages/admin/dashboard/dashboard.page.html

I modified AngularComponent.php so it will be able to do like so, just reusing code from AngularPage.php -> Heres is the diff

jadjoubran commented 7 years ago

Cool, thanks @vhanla Would you be able to send a PR against master?