Skip to content
Snippets Groups Projects
Select Git revision
  • 99c205a2b5bd861a00ff4df3909b49d6d7b52f1b
  • master default
  • goodpaths
  • movie-page
  • front-bilel
  • vieille-branche
  • octofront
  • branche-TP-de-Tom
8 results

main.js

Blame
  • controller.js 789 B
    /**
     * Created by jeremyguiselin on 10/12/2016.
     */
    
     (function (angular) {
       "use strict";
    
       /**
        * @ngdoc controller
        * @name InfoController
        *
        * @description
        * Controller for the info page.
        *
        * @ngInject
        */
       function InfoController(
         $ionicHistory,
         $scope
       ) {
    
         var deregistrationCallbackList = [];
    
         // cleanup
         $scope.$on('$destroy', function(){
           angular.forEach(
             deregistrationCallbackList,
             function(deregistrationCallback){
               deregistrationCallback();
           });
           deregistrationCallbackList = null;
         });
    
         $scope.myGoBack = function() {
           $ionicHistory.goBack();
         };
       }
    
       angular.module('starter')
         .controller('InfoController', InfoController);
     })(angular);