فهرست منبع

Ajout d'un module Home, pour définir la page d'accueil. Cela est peut être trop, car déjà présent avec le template initial, mais permet de jouer avec les routes par défaut.

jeje 7 سال پیش
والد
کامیت
9bf813fd5b
4فایلهای تغییر یافته به همراه60 افزوده شده و 0 حذف شده
  1. 0 0
      src/app/home/home.component.css
  2. 20 0
      src/app/home/home.component.html
  3. 25 0
      src/app/home/home.component.spec.ts
  4. 15 0
      src/app/home/home.component.ts

+ 0 - 0
src/app/home/home.component.css


+ 20 - 0
src/app/home/home.component.html

@@ -0,0 +1,20 @@
+<mat-grid-list cols="2" rowHeight="8:7">
+  <mat-grid-tile>
+    <mat-card class="example-card">
+      <mat-card-header>
+        <mat-card-title>Capteur HT - Voltage</mat-card-title>
+        <mat-card-subtitle>Définit la charge du capteur RFID</mat-card-subtitle>
+      </mat-card-header>
+      <mat-card-content>
+
+      </mat-card-content>
+      <!--mat-card-actions>
+        <button mat-button>LIKE</button>
+        <button mat-button>SHARE</button>
+      </mat-card-actions-->
+    </mat-card>
+  </mat-grid-tile>
+  <mat-grid-tile></mat-grid-tile>
+  <mat-grid-tile>3</mat-grid-tile>
+  <mat-grid-tile>4</mat-grid-tile>
+</mat-grid-list>

+ 25 - 0
src/app/home/home.component.spec.ts

@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { HomeComponent } from './home.component';
+
+describe('HomeComponent', () => {
+  let component: HomeComponent;
+  let fixture: ComponentFixture<HomeComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ HomeComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(HomeComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 15 - 0
src/app/home/home.component.ts

@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-home',
+  templateUrl: './home.component.html',
+  styleUrls: ['./home.component.css']
+})
+export class HomeComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}