Chinese Documentation : Valid names in LoopBack

In general, names of names of LoopBack applications, models, data sources, and so on must at a minimum be valid JavaScript identifiers, with the additional restriction that the dollar sign ($) is not allowed.

The rules for JavaScript identifiers are fairly broad (for example, you can use Unicode characters).  However, as a best practice, follow these more restrictive guidelines:

  • Begin names with a letter or underscore (_).  Don't begin a name with a number.
  • Other characters can be letters, numbers, or underscore (_).
  • Application names can contain the dash, that is, the minus-sign character (-).
Icon

In general, LoopBack allows other characters in names, including other non-alphanumeric characters and Unicode characters. But using them is not recommended as a best practice. If you have questions, inquire on the LoopBack Google Group.

It is also a good ideat to avoid using JavaScript reserved words as names, since doing so may be problematic.