diff --git a/demo-shell-ng2/app/components/tag/tag.component.css b/demo-shell-ng2/app/components/tag/tag.component.css
new file mode 100644
index 0000000000..292e1264f4
--- /dev/null
+++ b/demo-shell-ng2/app/components/tag/tag.component.css
@@ -0,0 +1,9 @@
+.adf-tag-example-area {
+ width: calc(33.3333333333% - 16px);
+ margin: 8px;
+ float: left;
+}
+
+.adf-tag-example-title {
+ padding-bottom: 12px;
+}
diff --git a/demo-shell-ng2/app/components/tag/tag.component.html b/demo-shell-ng2/app/components/tag/tag.component.html
new file mode 100644
index 0000000000..ce25c1a179
--- /dev/null
+++ b/demo-shell-ng2/app/components/tag/tag.component.html
@@ -0,0 +1,13 @@
+
+
+
+
+
List Tags Content Services
+
+
+
+
Tag list By Node ID
+
+
diff --git a/demo-shell-ng2/app/components/tag/tag.component.ts b/demo-shell-ng2/app/components/tag/tag.component.ts
index 161c00dfb6..5c8d8db133 100644
--- a/demo-shell-ng2/app/components/tag/tag.component.ts
+++ b/demo-shell-ng2/app/components/tag/tag.component.ts
@@ -19,18 +19,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'alfresco-tag-demo',
- template: `
-
-
-
-
-
List Tags Content Services
-
- Tag list By Node ID
-
-
-
- `
+ templateUrl: 'tag.component.html',
+ styleUrls: ['tag.component.css']
})
export class TagComponent {
diff --git a/ng2-components/ng2-alfresco-tag/index.ts b/ng2-components/ng2-alfresco-tag/index.ts
index e23cd637e1..d2341ac1ba 100644
--- a/ng2-components/ng2-alfresco-tag/index.ts
+++ b/ng2-components/ng2-alfresco-tag/index.ts
@@ -16,7 +16,7 @@
*/
import { ModuleWithProviders, NgModule } from '@angular/core';
-import { MdButtonModule, MdInputModule } from '@angular/material';
+import { MaterialModule } from './src/components/material.module';
import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
import { TagActionsComponent } from './src/components/tag-actions.component';
@@ -48,8 +48,7 @@ export const TAG_PROVIDERS: any[] = [
@NgModule({
imports: [
CoreModule,
- MdInputModule,
- MdButtonModule
+ MaterialModule
],
declarations: [
...TAG_DIRECTIVES
@@ -67,8 +66,7 @@ export const TAG_PROVIDERS: any[] = [
],
exports: [
...TAG_DIRECTIVES,
- MdInputModule,
- MdButtonModule
+ MaterialModule
]
})
export class TagModule {
diff --git a/ng2-components/ng2-alfresco-tag/src/components/material.module.ts b/ng2-components/ng2-alfresco-tag/src/components/material.module.ts
new file mode 100644
index 0000000000..4aae9d7cef
--- /dev/null
+++ b/ng2-components/ng2-alfresco-tag/src/components/material.module.ts
@@ -0,0 +1,33 @@
+/*!
+ * @license
+ * Copyright 2016 Alfresco Software, Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgModule } from '@angular/core';
+import {
+ MdButtonModule, MdChipsModule, MdIconModule, MdInputModule
+} from '@angular/material';
+
+export function modules() {
+ return [
+ MdButtonModule, MdInputModule, MdChipsModule, MdIconModule
+ ];
+}
+
+@NgModule({
+ imports: modules(),
+ exports: modules()
+})
+export class MaterialModule {}
diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.css b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.css
deleted file mode 100644
index 4ac32a3b42..0000000000
--- a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.tag-element {
- padding: 0px 0px 0px 9px!important;
-}
-
-.adf-full-width {
- width: 100%;
-}
diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.html b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.html
index 6a26134823..0bdf051cf7 100644
--- a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.html
+++ b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.html
@@ -1,67 +1,30 @@
-
-
-