Get started with ng-tags-input CDN

MIT licensed

Ng-tags-input is a Angular library for implementing tag input functionality with autocomplete suggestions.

Tags:
  • angular
  • tags
  • tags-input

Stable version

Copied!

How to start using ng-tags-input CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with ng-tags-input CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/14.2.5/material.min.css">
  <link rel="stylesheet" href="https://cdn.cdnhub.io/ng-tags-input/3.2.0/ng-tags-input.min.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/angular/1.7.9/angular.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.4.11/angular-material.min.js"></script>
  <script src="https://cdn.cdnhub.io/ng-tags-input/3.2.0/ng-tags-input.min.js"></script>
</head>
<body ng-app="myApp">
  <div ng-controller="MyController as vm">
    <md-input-container>
      <label>Tags</label>
      <md-chips ng-model="vm.tags" md-autocomplete="vm.tagsOptions" md-autocomplete-selected-item="tag" ng-tag-input="tag" ng-required="true">
        <md-chip ng-repeat="tag in vm.tags" remove remove-on-backspace>{{tag}}</md-chip>
      </md-chips>
    </md-input-container>
  </div>
  <script>
    angular.module('myApp', ['ngMaterial', 'ngTagsInput'])
      .controller('MyController', function() {
        this.tags = [];
        this.tagsOptions = [];
      });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions