Join Michael Sullivan for an in-depth discussion in this video Understanding two-way data binding, part of Learning Vue.js.
- [Instructor] In the last video,…we saw that we can easily populate an input field…with the value of one of our data properties.…In this case, an email.…One limitation of this technique…is that it doesn't really offer us anything useful…when it comes time to process the form input.…To explain what I mean by that,…I'm first gonna make a simple change here…so that I'm storing the reference to this view instance…in a variable called VM.…This is a common name to use when doing this…and it stands for view model,…and that's VIEW not VUE.…
What this allows me to do is to access the values…of my data property outside of the view instance.…And to demonstrate,…I'll make sure I refresh…and then look at the console tab.…I can access the value of my email property,…simply by typing vm.email now.…Notice that I don't have to use data…as an intermediate property name.…View knows that I'm looking for a data property,…or perhaps a method name,…and we'll get to method soon.…Now I have a default email address displayed in the form,…
- Adding Vue to a webpage
- Thinking declaratively with data binding
- Methods and event handling
- Adding dynamic style and class attributes
- Using CSS transitions and animations
- Using Vue components
- Vue CLI
Skill Level Intermediate
Web Programming Foundationswith Morten Rand-Hendriksen58m 44s Beginner
What you should know1m 29s
1. The Simplest Form
2. Essential Directives, Options, and Tools
3. Enhancing User Interfaces
4. Vue Components
Next steps2m 32s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.