Commit 809335ac by Ooh-Ao

animation

parent a9e3ae51
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<app-sidebar appHoverEffectSidebar></app-sidebar> <app-sidebar appHoverEffectSidebar></app-sidebar>
<app-header></app-header> <app-header></app-header>
<div class="content"> <div class="content">
<div id="maincontent" class="main-content" (click)="togglesidemenuBody()"> <div id="maincontent" class="main-content" (click)="togglesidemenuBody()" [@routeAnimations]="o.isActivated && o.activatedRoute.routeConfig?.path">
<router-outlet></router-outlet> <router-outlet #o="outlet"></router-outlet>
</div> </div>
<app-backtotop></app-backtotop> <app-backtotop></app-backtotop>
<div id="responsive-overlay" class="" (click)="clearToggle()"></div> <div id="responsive-overlay" class="" (click)="clearToggle()"></div>
......
import { Component, ElementRef, HostListener, Renderer2 } from '@angular/core'; import { ChangeDetectionStrategy, Component, ElementRef, HostListener, Renderer2 } from '@angular/core';
import { Menu, NavService } from '../../services/navservice'; import { Menu, NavService } from '../../services/navservice';
import { SwitcherService } from 'src/app/shared/services/switcher.service'; import { SwitcherService } from 'src/app/shared/services/switcher.service';
import * as switcher from '../../../shared/components/switcher/switcher'; import * as switcher from '../../../shared/components/switcher/switcher';
import { routeAnimations } from '../../services/animations/route.animations';
@Component({ @Component({
selector: 'app-full-layout', selector: 'app-full-layout',
templateUrl: './full-layout.component.html', templateUrl: './full-layout.component.html',
styleUrls: ['./full-layout.component.scss'], styleUrls: ['./full-layout.component.scss'],
animations: [routeAnimations],
changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class FullLayoutComponent { export class FullLayoutComponent {
public menuItems!: Menu[]; public menuItems!: Menu[];
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Synto- Tailwind Angular Admin Template</title> <title>APSPlus ระบบประเมินผลออนไลน์</title>
<base href="/" /> <base href="/" />
<!-- <base href="/synto/preview/" /> --> <!-- <base href="/synto/preview/" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
<app-root></app-root> <app-root></app-root>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment