O'Reilly logo

Getting Started with Meteor.js JavaScript Framework - Second Edition by Isaac Strack

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Let's create some templates

We'll now see a real-life example of reactive computations and work on our Lending Library at the same time. Adding categories through the console has been a fun exercise, but it's not a long-term solution. Let's make it so that we can do that on the page instead as follows:

  1. Open LendLib.html and add a new button just before the {{#each lists}} expression:
    <div id="categories" class="btn-group">
      <div class="category btn btn-primary" id="btnNewCat">
        <span class="glyphicon glyphicon-plus"></span>
      </div>
      {{#each lists}}
  2. This will add a plus button on the page, as follows:
    Let's create some templates
  3. Now, we want to change the button into a text field ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required