Personal portfolio website for Regina Carvalho. Built with Famous.js library.

getController.js 543B

12345678910111213141516171819
  1. angular.module('goApp.getController', ['goApp.data'])
  2. .provider('getController', function () {
  3. "use strict";
  4. this.$get = function ($location, Data) {
  5. return function () {
  6. var data = Data.getPageData($location.path);
  7. if(data.controller === undefined){
  8. console.log('> Loading controller: SlideshowController');
  9. return 'SlideshowController';
  10. } else {
  11. console.log('> Loading controller: ' + data.controller);
  12. return data.controller;
  13. }
  14. };
  15. };
  16. });