Skip to content
Snippets Groups Projects
Select Git revision
  • 11afdd6efd404a2c0e262d2c82751cc76f4299d9
  • master default
  • clement
  • fix_requirements
  • new_signup
  • interface_admin
  • hamza
  • dev
  • test
  • melissa
  • context_sheet
  • sorties_new
  • Seon82-patch-2
  • export_bdd
  • refactor/participation-user-link
15 results

common.py

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);