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

getController.js 532B

123456789101112131415161718
  1. "use strict"
  2. angular.module('goApp.getController', ['goApp.data'])
  3. .provider('getController', function () {
  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. });