Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
refactor(tagsInput): Renamed tags-input as ngTagsInput
Browse files Browse the repository at this point in the history
Renamed tags-input module as ngTagsInput so it matches the official
name of the project.

BREAKING CHANGE: This change breaks apps which use the old name,
although it's simple to fix it.
  • Loading branch information
mbenford committed Dec 7, 2013
1 parent 360a566 commit 1db08aa
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function(grunt) {
},
// Compiles the HTML templates into a Javascript file
ngtemplates: {
'tags-input': {
ngTagsInput: {
files: {
'<%= files.html.out %>': ['<%= files.html.src %>']
},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can also use Bower to install all files at once. Just run `bower install ng-
<script src="ng-tags-input.min.js"></script>
<link rel="stylesheet" type="text/css" href="ng-tags-input.min.css">
<script>
angular.module('myApp', ['tags-input'])
angular.module('myApp', ['ngTagsInput'])
.controller('MyCtrl', function($scope, $http) {
$scope.tags = ['just','some','cool','tags'];
$scope.loadTags = function(query) {
Expand Down
2 changes: 1 addition & 1 deletion build/ng-tags-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var KEYS = {
comma: 188
};

var tagsInput = angular.module('tags-input', []);
var tagsInput = angular.module('ngTagsInput', []);

/**
* @ngdoc directive
Expand Down
Binary file modified build/ng-tags-input.min.zip
Binary file not shown.
Binary file modified build/ng-tags-input.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function(config) {
ngHtml2JsPreprocessor: {
stripPrefix: 'templates/',
prependPrefix: 'ngTagsInput/',
moduleName: 'tags-input'
moduleName: 'ngTagsInput'
},

// list of files to exclude
Expand Down
2 changes: 1 addition & 1 deletion src/tags-input.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var tagsInput = angular.module('tags-input', []);
var tagsInput = angular.module('ngTagsInput', []);

/**
* @ngdoc directive
Expand Down
2 changes: 1 addition & 1 deletion test/auto-complete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('autocomplete-directive', function() {
parentCtrl, element, isolateScope, suggestionList, deferred, tagsInput, eventHandlers;

beforeEach(function() {
module('tags-input');
module('ngTagsInput');

inject(function($rootScope, _$compile_, _$q_, _$timeout_) {
$scope = $rootScope;
Expand Down
2 changes: 1 addition & 1 deletion test/tags-input.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('tags-input-directive', function() {
isolateScope, element;

beforeEach(function() {
module('tags-input');
module('ngTagsInput');

inject(function(_$compile_, _$rootScope_, _$document_, _$timeout_) {
$compile = _$compile_;
Expand Down
2 changes: 1 addition & 1 deletion test/test-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<input type="text"/>

<script type="text/javascript">
angular.module('app', ['tags-input'])
angular.module('app', ['ngTagsInput'])
.controller('Ctrl', function($scope, $q) {
$scope.tags = ['Batman', 'Superman', 'Flash'];
$scope.placeholder = {value: "New tag" };
Expand Down
2 changes: 1 addition & 1 deletion test/transclude-append.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('transclude-append-directive', function () {
element;

beforeEach(function () {
module('tags-input');
module('ngTagsInput');
module(function($compileProvider) {
directive = $compileProvider.directive;
});
Expand Down

0 comments on commit 1db08aa

Please sign in to comment.