O'Reilly logo

Instant AngularJS Starter by Dan Menard

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

Quick start – an MVC application in AngularJS

Hello World examples are nice, because they introduce you to the framework's syntax and capabilities. But if you've ever tried to build a large product with a new JavaScript framework, you've probably run into the same problem I have—scale.

I don't know what you intend to build with AngularJS, but I'm fairly confident it won't fit in a single file like the example we just saw. You'll want to use multiple controllers, dynamic views, and models with real data. After all, interaction between models, views, and controllers is one of the things AngularJS does very well.

In this section, we're going to build an application following the Model-View-Controller (MVC) pattern. We'll combine multiple views, models, ...

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