piga/angular
最新稳定版本:v1.0.0
Composer 安装命令:
composer require piga/angular
包简介
README 文档
README
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.
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
composer require piga/angular
or add to your composer.json
"piga/angular": "^1.0"
###step two
Enable the bundle and related bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FOS\JsRoutingBundle\FOSJsRoutingBundle(), new Piga\AngularBundle\PigaAngularBundle(), ); }
###Step three you have to import angular routing
In YAML:
# app/config/routing.yml piga_angular: resource: "@PigaAngularBundle/Resources/config/routing.yml"
###Step four run command
app/console piga:angular:install
this command run
- bower install (in pigabundle directory)
- app/console assetic:install --symlink web
result of runing this command should be symlink to angular libraries inside your web catalog
###step five
open demo page in browser
app_dev.php/index
And you will see demo controller
##If you get some errors please report it creating new issue
Basic usage
What next?
Usage tutorial tutorial
Usage flow usage
Demo project useing this bundle demo
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-06-21