Now that Kyle has created a public API for generating a random number, he wants to create a button in the interface to call the API. Kyle also adds a checkbox to determine if the module should be invoked locally or from the server.
(oriental music)…- Lets go to our about dot grips dot HTML.…We're just going to be silly about this particular page.…I'm going to take out that message stuff that I was doing.…In fact let's just take out the partial entirely…because it's more complexity than we really need right now.…But what I do want is I want to be able to do…I want to be able to have, like a button.…
With a label.…(typing)…And let's start off with our check box being checked…so we'll start off by defaulting it to local.…So it's just some simple basic HTML stuff.…
- [Student] Now you're terminating your label with an A?…- With an A instead of a label, thank you.…Alright, now we haven't used any of that code yet,…but let's just double check to make sure I didn't…
Note: This course was created on 03/29/2016 by Frontend Masters. We are pleased to host this content in our library.
- Carousels, panes, and modules
- Middle-end architecture
- Secure phrase generator
- Routing functions
- Calling the API
- Rendering on the page
- Shared data validation
Skill Level Intermediate
2. Organizing Code
5. Adding a Shared Module
- 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.