add npm link script for SAE lib to be used in other projects
This commit is contained in:
parent
bb0e44eb55
commit
e4031a9768
16 changed files with 1108 additions and 2168 deletions
|
@ -1,10 +1,10 @@
|
|||
import { Component, signal } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import {SaeLib} from '../../../my-workspace/projects/sae-lib/src/public-api';
|
||||
// import {SaeLib} from '@sae-lib/src/public-api';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet, SaeLib],
|
||||
imports: [RouterOutlet],
|
||||
templateUrl: './app.html',
|
||||
styleUrl: './app.scss'
|
||||
})
|
||||
|
|
|
@ -48,4 +48,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<app-alert-box></app-alert-box>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// TODO importer les variables de la librairie
|
||||
@use '../../../../styles/variables-barrel' as variables;
|
||||
.top-navigation{
|
||||
background: #ccc;
|
||||
background: variables.$bg-color-nav;
|
||||
color: white;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {RouterLink, RouterLinkActive} from '@angular/router';
|
||||
import {AlertBox} from '../../../../../../my-workspace/projects/sae-lib/alert-box/alert-box';
|
||||
|
||||
// import {SaeLib} from 'sae-lib';
|
||||
|
||||
@Component({
|
||||
selector: 'app-top-navigation',
|
||||
imports: [
|
||||
RouterLink,
|
||||
RouterLinkActive
|
||||
RouterLinkActive,
|
||||
AlertBox
|
||||
],
|
||||
templateUrl: './top-navigation.html',
|
||||
styleUrl: './top-navigation.scss'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue