Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Linter warning about object as default property

$
0
0

@bsylvain wrote:

My linter return the following warning: Only string, number, symbol, boolean, null, undefined, and function are allowed as default properties ember/avoid-leaking-state-in-ember-object

for this line in a model :

providerValues:{someprovider:'Some Provider',otherprovider:'Other Provider' }

That I use to complete this property : provider:DS.attr('string')

How should I set static values in a model to avoid this warning ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles