Last active
August 29, 2015 14:20
-
-
Save Johan-ZeLearner/0584fa06993ee1b1fdec to your computer and use it in GitHub Desktop.
Entry point of our AngularJS module with js dependancies loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-app="erpedia-customer-profile" ui-view> | |
</section> | |
<script> | |
var jsBaseHref = '<?php echo \P\themePath(); ?>customerProfile/assets'; | |
</script> | |
<?php $appJsPath = \P\themePath().'customerProfile/assets/javascript'; ?> | |
<!-- BOWER --> | |
<?php \P\lib\framework\helpers\JSManager::addFile(\P\themePath().'js/bower_components/angular/angular.min.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile(\P\themePath().'js/bower_components/angular-resource/angular-resource.min.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile(\P\themePath().'js/bower_components/angular-ui-router/release/angular-ui-router.min.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile(\P\themePath() . 'js/bower_components/angular-jarvis/jarvis-widget.js'); ?> | |
<!-- APP --> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/app.js'); ?> | |
<!-- CONTROLLERS --> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/controllers/customerProfileRootController.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/controllers/customerProfileListController.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/controllers/customerProfileCreateController.js'); ?> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/controllers/customerProfileUpdateController.js'); ?> | |
<!-- SERVICES --> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/services/customerProfile.js'); ?> | |
<!-- DIRECTIVES --> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/directives/customerProfileForm.js'); ?> | |
<!-- ROUTES --> | |
<?php \P\lib\framework\helpers\JSManager::addFile($appJsPath . '/routes/routes.js'); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment