Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Vue.js Basics What a Beautiful Vue! Add interactivity with v-show and v-on

Is methods a keyword like el?

Is methods a keyword like el or can we use any word as long as it's not reserved?

1 Answer

Hi Alexandru!

In Vue, what you are calling 'keywords' are referred to as 'options' and, yes methods is a standard Vue object/component option.

More info:

https://012.vuejs.org/api/options.html#methods

I hope that helps.

Stay safe and happy coding!