Package Data | |
---|---|
Maintainer Username: | jadjoubran |
Maintainer Contact: | alessandro.rovito@gmail.com (Alessandro Rovito) |
Package Create Date: | 2015-11-04 |
Package Last Update: | 2019-10-27 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:06:21 |
Package Statistics | |
---|---|
Total Downloads: | 67,979 |
Monthly Downloads: | 50 |
Daily Downloads: | 1 |
Total Stars: | 90 |
Total Watchers: | 15 |
Total Forks: | 23 |
Total Open Issues: | 7 |
AngularJS generators for Artisan. Originally created at laravel5-angular-material-starter.
If you're using the starter project, then it's already pre-installed.
composer require laravelangular/generators
//and then add the provider in config/app.php
LaravelAngular\Generators\LaravelServiceProvider::class,
php artisan vendor:publish
php artisan ng:page name #New page inside angular/app/pages/
php artisan ng:component name #New component inside angular/app/components/
php artisan ng:directive name #New directive inside angular/directives/
php artisan ng:config name #New config inside angular/config/
php artisan ng:dialog name #New custom dialog inside angular/dialogs/
php artisan ng:filter name #New filter inside angular/filters/
php artisan ng:service name #New service inside angular/services/
These commands will create new directories and files for AngularJS front-end in new ES6 syntax.
If not present, commands will create index files (i.e.: index.components.js
) and, if enabled, new created classes will be imported.
Configurations are editable in config\generators.php
. See below for details.
php artisan ng:component name
will be created three new files for component name
with root/components/name/
path. Default is angular/app/components/name/
php artisan ng:directive name
will be created a file named name.directive.js
.
source
, but for test filesangular.module('mymodule', [])
) or is part of a root module (angular.module('mymodule')
). If set to false, use_prefix
, prefix
and suffix
will be ignored and root module name will be used.prefix.suffix
; i.e.: app.components
.View Angular Generators documentation
Originally created at laravel5-angular-material-starter then moved to a separate package by @m33ch
service
, it will be automatically added for you.