All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.scripts.components.entities.identifier.with.role.js Maven / Gradle / Ivy

Go to download

Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 (centraldogma-server)

There is a newer version: 0.70.0
Show newest version
'use strict';

angular.module('CentralDogmaAdmin')
        .factory('IdentifierWithRole', function () {
  function IdentifierWithRole() {
    this.elements = [];
  }

  IdentifierWithRole.prototype = {
    pushNew: function () {
      this.elements.push({
        id: null,
        role: null
      });
    },
    remove: function (elm) {
      this.elements = this.elements.filter(function (value) {
        return value !== elm;
      });
    }
  };

  return (IdentifierWithRole);
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy