|
2 | 2 | /// <reference types="gridstack" /> |
3 | 3 |
|
4 | 4 | import { Component, ChangeDetectionStrategy, Input, Renderer2, ElementRef, AfterViewInit, OnDestroy } from '@angular/core'; |
5 | | -import { GridstackService } from '../gridstack.service'; |
| 5 | +import { NgGridstackService } from '../../services/ng-gridstack.service'; |
6 | 6 |
|
7 | 7 | @Component({ |
8 | | - selector: 'app-gridstack-item', |
9 | | - templateUrl: './gridstack-item.component.html', |
10 | | - styleUrls: ['./gridstack-item.component.scss'], |
| 8 | + selector: 'ng-gridstack-item', |
| 9 | + templateUrl: './ng-gridstack-item.component.html', |
| 10 | + styleUrls: ['./ng-gridstack-item.component.scss'], |
11 | 11 | changeDetection: ChangeDetectionStrategy.OnPush |
12 | 12 | }) |
13 | | -export class GridstackItemComponent implements AfterViewInit, OnDestroy { |
| 13 | +export class NgGridstackItemComponent implements AfterViewInit, OnDestroy { |
14 | 14 | @Input() id: string; |
15 | 15 |
|
16 | 16 | @Input() set x(value: number) { |
@@ -67,7 +67,7 @@ export class GridstackItemComponent implements AfterViewInit, OnDestroy { |
67 | 67 | constructor( |
68 | 68 | private elementRef: ElementRef, |
69 | 69 | private renderer: Renderer2, |
70 | | - private gridstackService: GridstackService) { |
| 70 | + private gridstackService: NgGridstackService) { |
71 | 71 | this.element = this.elementRef.nativeElement; |
72 | 72 | this.renderer.addClass(this.element, 'grid-stack-item'); |
73 | 73 | this.renderer.setAttribute(this.element, 'data-gs-no-resize', false.toString()); |
|
0 commit comments