mardi 17 juillet 2018

Is there a way to get all the attributes passed to an Ember component?

For example, given the following code:



Inside the my-component/component.js file, I need a method to get all the passed attributes, something like this:

{
    foo: "bar",
    baz: "qux"
}

Does Ember have something to accomplish this? Or the only way is to do something hacky?




Aucun commentaire:

Enregistrer un commentaire