2017 © Pedro Peláez
 

library angular

image

piga/angular

  • Monday, June 22, 2015
  • by piotr-galas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Angular Bundle

Idea

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)

What bundle do?

  • Add angular files to base layout
  • Allow you to use oneReload page with symfony routing
  • Allow you to use Angular in twig which is rendering by symfony controller

instalation

  • Download PigaAngularBundle using composer
  • Enable the Bundle and RelatedBundle
  • Import angular routing
  • Run initialize commmand
  • Open default page in browser

step one

download bundle using composer, (*2)

  composer require piga/angular

or add to your composer.json, (*3)

  "piga/angular": "^1.0"

step two

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"

Step four

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)

step five

open demo page in browser, (*10)

 app_dev.php/index

And you will see demo controller, (*11)

If you get some errors please report it creating new issue

Basic usage

What next?, (*12)

Usage tutorial tutorial, (*13)

Usage flow usage, (*14)

Demo project useing this bundle demo, (*15)

The Versions

22/06 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

21/06 2015

v1.0.0

1.0.0.0

  Sources   Download

The Requires