var app = angular.module('plunker', ['ngTagsInput']);
app.controller('MainCtrl', function($scope, $http) {
$scope.tags = ['Tag 1']
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="http://mbenford.github.io/ngTagsInput/css/ng-tags-input.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>
<script src="http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<form name="form">
<tags-input name="tags" ng-model="tags" max-tags="1"></tags-input>
<p>Model: {{tags}}</p>
<p>$pristine: {{form.tags.$pristine}}</p>
<p>$dirty: {{form.tags.$dirty}}</p>
<p>$valid: {{form.tags.$valid}}</p>
<p>$error: {{form.tags.$error}}</p>
</form>
</body>
</html>