O'Reilly logo

AngularJS Directives Cookbook by Fernando Monteiro

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

Implementing the ng-grid directive

In this recipe, we'll see how to use an extremely useful interface component used in a large number of web applications. We're talking about ng-grid, a very useful custom directive to deal with dynamic tabular data.

In this example, we will use an external public API to grab some data.

Getting ready

We're still using the same code base that we used in the previous chapter. Let's add a new module.

Open your terminal window on the root project folder and type the following command:

yo angm:angm-module

Name the new module as gridexample. When the generator finishes its work, we will have the following result:

Getting ready

The gridexample ...

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