Wallogit.com
2017 © Pedro Peláez
This bundle integrate angular with symfony. The idea is create easy bundle without any magic. Bundle consist of one controller one view and little configuration. Bundle use bower as js dependency manager. The idea is create symfony action in normal way, but have access to angular in all of views., (*1)
download bundle using composer, (*2)
composer require piga/angular
or add to your composer.json, (*3)
"piga/angular": "^1.0"
Enable the bundle and related bundle in the kernel:, (*4)
``` php <?php // app/AppKernel.php, (*5)
public function registerBundles() { $bundles = array( // ... new FOS\JsRoutingBundle\FOSJsRoutingBundle(), new Piga\AngularBundle\PigaAngularBundle(), ); }, (*6)
###Step three
you have to import angular routing
In YAML:
``` yaml
# app/config/routing.yml
piga_angular:
resource: "@PigaAngularBundle/Resources/config/routing.yml"
run command, (*7)
app/console piga:angular:install
this command run * bower install (in pigabundle directory) * app/console assetic:install --symlink web, (*8)
result of runing this command should be symlink to angular libraries inside your web catalog, (*9)
open demo page in browser, (*10)
app_dev.php/index
And you will see demo controller, (*11)
What next?, (*12)
Usage tutorial tutorial, (*13)
Usage flow usage, (*14)
Demo project useing this bundle demo, (*15)