mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-16 04:30:08 +00:00
Added layout components to main-layout components and then main-layout to app
This commit is contained in:
@@ -1 +1,3 @@
|
||||
<p>footer works!</p>
|
||||
<footer>
|
||||
<p>footer works!</p>
|
||||
</footer>
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
<p>header works!</p>
|
||||
<header>
|
||||
<p>header works!</p>
|
||||
</header>
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
<p>main-layout works!</p>
|
||||
<app-header />
|
||||
<app-sidebar />
|
||||
<app-footer />
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {FooterComponent} from '../footer/footer.component';
|
||||
import {SidebarComponent} from '../sidebar/sidebar.component';
|
||||
import {HeaderComponent} from '../header/header.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-main-layout',
|
||||
imports: [],
|
||||
imports: [
|
||||
FooterComponent,
|
||||
SidebarComponent,
|
||||
HeaderComponent
|
||||
],
|
||||
templateUrl: './main-layout.component.html',
|
||||
styleUrl: './main-layout.component.css'
|
||||
})
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
<p>sidebar works!</p>
|
||||
<div>
|
||||
<nav>
|
||||
<li>sidebar works</li>
|
||||
<li>sidebar works</li>
|
||||
<li>sidebar works</li>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user