14.01.2015 Views

Eric lippert - Amazon Web Services

Eric lippert - Amazon Web Services

Eric lippert - Amazon Web Services

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Wire up the navigation<br />

Conclusion<br />

The last thing we must do is to tell the shell about the new<br />

page. In the ‘App/viewmodels/shell.js’ file add the map of the<br />

tweet page on the boot function:<br />

function boot() {<br />

router.mapNav(‘home’);<br />

router.mapNav(‘details’);<br />

router.mapNav(‘tweets’);<br />

log(‘Hot Towel SPA Loaded!’, null, true);<br />

return router.activate(‘home’);<br />

}<br />

Let it run!<br />

The power of SPAs are great and endless and the new HotTowel<br />

SPA template is a great way to get started. As application<br />

developers, we don’t want to worry about the boring plumbing<br />

but be able to quickly start working with the fun stuff. This<br />

template allows us to do just that!<br />

HotTowel really makes it easy to create fast, durable, modular,<br />

cross-browser and sexy Single Page Applications with rich<br />

navigation and data access functionality. This is definitely on<br />

the tech-stack for my next web app<br />

You can download the entire code from Github here<br />

bit.ly/dncm6-ht<br />

After hitting F5, you’ll notice a new menu item ‘tweets’. After<br />

clicking it, we are presented with the tweet page that we just<br />

created:<br />

Fanie Reynders is a Microsoft Certified<br />

Professional from South Africa. Being a web<br />

technology evangelist in his own right, he<br />

has been developing on the Microsoft stack<br />

for over 9 years. Follow him on Twitter<br />

@FanieReynders and read his blog on<br />

bit.ly/ZiKLT5<br />

DNcmagazine www.dotnetcurry.com | 29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!