[Vuejs]-Array into object undefined

0👍

This happens because this.sequence is created at the same time with the this.steps. It’s like writing var foo = {bar: 'baz', barTwo: foo.bar}.

You can solve this by moving steps initialisation to created() or make computed property.

Leave a comment