experiment_id: web-retrieval-v1
fixture_id: /docs/integrations/js-frameworks-&-libs/angular
mode: provenance
representation: html
origin_response_id: e7cba1ef2335bc08837568eb42fc99fa
version: 2026-10-21
version_created_at_utc: 2026-10-21T20:42:35.727Z
version_nonce: e8a1dd52b98a56d541c9489a71ef81c9
generated_at_utc: 2026-11-04T23:47:09.215Z
response_nonce: b2b6b5dc6255f41e2a2a2802b909332e
Docs Version 1

Angular Integration

ZingGrid works with your development stack, including Angular! In this guide, we'll walk you through how to add ZingGrid to your Angular project.

Usage

  1. Include the following dependencies in the header of your HTML file:

    <script src="path/to/zinggrid.min.js" defer></script>
  2. Import an Angular component, like so:

    import { Component } = '@angular/core';
  3. Create a ZingGrid component, like so:

    @Component({
      selector: 'my-component',
      template: '<zing-grid caption="Hello World"></zing-grid>',
    })
    class MyComponent {
      datastore = [
        { "breed": "Chow Chow", "name": "Butter"},
        { "breed": "Dachshund", "name": "Sousage"},
        { "breed": "Pug", "name": "Potat"},
        { "breed": "Corgi", "name": "Plop"},
        { "breed": "Pomeranian", "name": "Floof"}
      ];
    }
  4. Display your new component, like so:

    <my-component></my-component>

Angular Integrated Grid

Here is our complete grid that is successfully integrated with Angular:

Top

AngularJS Integration

ZingGrid works with your development stack, including AngularJS! In this guide, we'll walk you through how to add ZingGrid to your AngularJS project.

Top

Usage

  1. Include the following dependencies in the header of your HTML file:

    <script src="path/to/zinggrid.min.js" defer></script>
  2. Define the AngularJS application, like so:

    var app = angular.module('myApp', []);
  3. Create a ZingGrid component with a controller for data, like so:

    app.component('myGrid', {
      template: '',
      controller: MyController
    });
    
    function MyController($scope, $element, $attrs) {
      this.dogs = [
        {
          "breed": "Dachshund",
          "name": "Sausage"
        },
        {
          "breed": "Corgi",
          "name": "Plop"
        },
        {
          "breed": "Pomeranian",
          "name": "Floof"
        }
      ];
      $scope.$evalAsync(() => {
        const zgRef = document.createElement('zing-grid');
        zgRef.setAttribute('caption', 'Hello Doggos');
        zgRef.setAttribute('data', JSON.stringify(this.dogs));
        $element.append(zgRef);
      });
    }

    Note: Need to pass in the data to your component? View our demo.

  4. Display your app and new component, like so:

    <div ng-app="myApp">
      <my-grid></my-grid>
    </div>

AngularJS Integrated Grid

Here is our complete grid that is successfully integrated with AngularJS:

Top

[integrations: angular]