Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilisation Enums dans node #3

Open
guinardpaul opened this issue Nov 28, 2017 · 0 comments
Open

Utilisation Enums dans node #3

guinardpaul opened this issue Nov 28, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@guinardpaul
Copy link
Owner

Voir comment définir les enums dans un autre fichier pour être utilisée partout dans le server

  • Fonctionne quand on défini directement l'enum :
    enum : ['Cycle 3','Cycle 4']

  • Ne fonctionne pas quand on définit :
    module.export = CYCLES = ['Cycle 3','Cycle 4']; dans un autre fichier
    const CYCLES = require('./enums');
    enum: CYCLES

@guinardpaul guinardpaul added this to the v1.0 milestone Nov 28, 2017
@guinardpaul guinardpaul self-assigned this Nov 28, 2017
@guinardpaul guinardpaul added this to Backlog in MP-Competences via automation Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
MP-Competences
  
Backlog
Development

No branches or pull requests

1 participant