guilleferrer/angularjsbundle

Symfony2 bundle for Angular js integration

Installs: 292

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

dev-master 2012-10-30 11:22 UTC

This package is not auto-updated.

Last update: 2020-01-10 14:50:10 UTC


README

The angularjs bundle provides a basic template for an angular project and loads the assets requried by the www.angularjs.org project

Make your template to

{% extends 'UdfAngularJSBundle::angular_base.html.twig' %}

For your project and you'll have a bootstraped version with the main assets for your Angular project

To configure just add :

// AppKernel.php
new Udf\AngularJSBundle\UdfAngularJSBundle()
// Edit your composer.json and add this line in the "require" object
"guilleferrer/angularjsbundle" :"dev-master"

This bundle FORCES you to have a MainCtrl function in javascript, that belongs to the the tag :

<body ng-controller="MainCtrl"> 
...
</body>
```