kroenen 5 年前
父节点
当前提交
57d0d91074

+ 2
- 2
src/app/app.component.html 查看文件

@@ -4,9 +4,9 @@
4 4
     Bonjour, je suis le content avec du <strong>html !!!</strong>
5 5
   </c3-tooltip>
6 6
 </app-componentWithContentOrNot>
7
-<p [c3Tooltip]="another" [c3TooltipDisabled]="true">message</p>
7
+<p [c3Tooltip]="another" [c3TooltipDisabled]="false">message</p>
8 8
 <c3-tooltip #another="c3Tooltip">
9
-  Bonjour, je suis une tooltip mis sur un p avec du <strong>html !!!</strong>
9
+  <c3-test></c3-test>
10 10
 </c3-tooltip>
11 11
 <p>message</p>
12 12
 <p>message</p>

+ 5
- 3
src/app/app.module.ts 查看文件

@@ -5,16 +5,18 @@ import { AppComponent } from './app.component';
5 5
 import { ComponentWithContentOrNotComponent } from './componentWithContentOrNot/componentWithContentOrNot.component';
6 6
 import { HasContentComponent } from './hasContent/hasContent.component';
7 7
 import { C3TooltipModule } from './c3-tooltip/c3-tooltip.module';
8
+import { TestComponent } from './test/test.component';
8 9
 
9 10
 @NgModule({
10 11
    declarations: [
11 12
       AppComponent,
12 13
       ComponentWithContentOrNotComponent,
13
-      HasContentComponent
14
+      HasContentComponent,
15
+      TestComponent
14 16
    ],
15 17
    imports: [
16
-			BrowserModule,
17
-			C3TooltipModule
18
+      BrowserModule,
19
+      C3TooltipModule
18 20
    ],
19 21
    providers: [],
20 22
    bootstrap: [

+ 0
- 0
src/app/test/test.component.css 查看文件


+ 3
- 0
src/app/test/test.component.html 查看文件

@@ -0,0 +1,3 @@
1
+<p>
2
+  test works!
3
+</p>

+ 28
- 0
src/app/test/test.component.spec.ts 查看文件

@@ -0,0 +1,28 @@
1
+/* tslint:disable:no-unused-variable */
2
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3
+import { By } from '@angular/platform-browser';
4
+import { DebugElement } from '@angular/core';
5
+
6
+import { TestComponent } from './test.component';
7
+
8
+describe('TestComponent', () => {
9
+  let component: TestComponent;
10
+  let fixture: ComponentFixture<TestComponent>;
11
+
12
+  beforeEach(async(() => {
13
+    TestBed.configureTestingModule({
14
+      declarations: [ TestComponent ]
15
+    })
16
+    .compileComponents();
17
+  }));
18
+
19
+  beforeEach(() => {
20
+    fixture = TestBed.createComponent(TestComponent);
21
+    component = fixture.componentInstance;
22
+    fixture.detectChanges();
23
+  });
24
+
25
+  it('should create', () => {
26
+    expect(component).toBeTruthy();
27
+  });
28
+});

+ 15
- 0
src/app/test/test.component.ts 查看文件

@@ -0,0 +1,15 @@
1
+import { Component, OnInit } from '@angular/core';
2
+
3
+@Component({
4
+  selector: 'c3-test',
5
+  templateUrl: './test.component.html',
6
+  styleUrls: ['./test.component.css']
7
+})
8
+export class TestComponent implements OnInit {
9
+
10
+  constructor() { }
11
+
12
+  ngOnInit() {
13
+  }
14
+
15
+}