Getting started with Ember.js

Web applications today are nothing like the ones we saw just a couple of years ago, they’re far more complex and many rival desktop equivalents.

In order to create this kind of application, we can’t really rely on libraries like jQuery that are intended for DOM manipulation. This new rise of web applications has lead to JavaScript developers taking the MVC route simply because it creates much cleaner and more manageable code.

A number of JavaScript frameworks have emerged for creating web applications and one of them is Ember.js.

What is Ember.js ?

As I’ve said, Ember.js is a JavaScript framework for the creation of web applications. It evolved from a project called SproutCore.

Now, in order to store some data we need a model. You can have as many models as you like, and each one will handle a specific type of data. If for example you wanted to create a model with your favourite TV shows you’d use something like:

To show this controller in the view we need to create a handlebars template on our index page. In this case I’m going to use an each statement because it works with one show and will still work if I decide to add more later:

This is just the very beginning of what you can do with Ember.js. As the website says, it’s used to create powerful single page applications in JavaScript and I hope this brief introduction has inspired you to dig into the subject further, because it has a bright future.

Have you built a project in Ember.js? Is JavaScript suitable for complex applications? Let us know in the comments.

Author: Sara Vieira

Sara Vieira is a freelance Web Designer and Developer with a passion for HTML5/CSS3 and jQuery. You can follow her on twitter or check out her website.

http://www.parafriv.net/ Para Friv

I do not have much information about this, but when I read this article I share quite interesting. I will share with my friends in this area. Thank you for this.