mean.js: commom variable across controllers and models

48 Views Asked by At

In mean.js I need to declare a common variable to be used across client controllers and server models (a same module)

  var _origens_list = [
      { id: 1, tipo: "Manual1",    nome: "Manual" },
      { id: 2, tipo: "Automática", nome: "Metodo 1" },
      { id: 3, tipo: "Automática", nome: "Metodo 2" },
      { id: 4, tipo: "Automática", nome: "Metodo 3" }
  ];

Where and how a declare it to have it declared once?

kind regards

0

There are 0 best solutions below