Skip to content

Instantly share code, notes, and snippets.

@fouad-j
Last active May 3, 2017 21:08
Show Gist options
  • Select an option

  • Save fouad-j/6b81ce890a3f8bc36300f3355f3527d1 to your computer and use it in GitHub Desktop.

Select an option

Save fouad-j/6b81ce890a3f8bc36300f3355f3527d1 to your computer and use it in GitHub Desktop.

Revisions

  1. fouad-j renamed this gist May 3, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. fouad-j renamed this gist May 3, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. fouad-j created this gist May 3, 2017.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    angular.module('app').service('toggleService', function() {
    const TOGGLE_LIST = ['TOGGLE_NAME_1', 'TOGGLE_NAME_2', 'TOGGLE_NAME_3'];
    this.isEnable = toggleName => TOGGLE_LIST.includes(toggleName);
    });