Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
angular-gobox / src / services / box_registration.js
Size: Mime:
(function() {
    'use strict';

    angular.module('angularGobox').service('BoxRegistration', BoxRegistration);

    BoxRegistration.$inject = ['BoxType'];

    function BoxRegistration(BoxType) {
        var service = this;

        service.reset = reset;

        // public

        function reset() {
            service.box_type = BoxType.standard;
            service.box = undefined;
        }

        // private

        function initialize() {
            service.reset();
        }

        initialize();
    }
})();