namlook / ember-eureka

Ember client for Eureka applications
MIT License
3 stars 0 forks source link

implement aliases #40

Closed namlook closed 10 years ago

namlook commented 10 years ago

Sometime we can have a field which act like a title but isn't named as title. It would be great to be able to alias some fieldName to another.

The following example creates the alias title from the name field:

{
  User: {
    aliases: {
      title: 'name'
    },
    schema: {
      name: {type: 'string'},
    }
}