Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 앵귤러 애니메이션
- prisma
- 스크롤 이벤트 감지
- 모달
- angular modal
- 아이오닉 스크롤 이벤트
- Oracle LISTAGG 사용 예시
- TAILWIND
- 검색
- 호버
- angular button
- flex-1
- formgroup
- Angular Router
- angular route
- modal
- route
- 앵귤러 모달
- 옵저버블
- Ionic modal
- 스크롤 이벤트
- ApexChart
- mysql if
- angular animation
- ajax 사용 예시
- Router
- 셀렉트박스 커스텀
- scroll
- summary
- egov spring ajax 사용 예시
Archives
- Today
- Total
깜놀하는 해므찌로
app.config ionic / router outlet / angular router 본문
반응형
SMALL
<ion-app>
<ion-router-outlet></ion-router-outlet>
</ion-app>
1. app-template
<section class="flex w-full h-screen">
<router-outlet></router-outlet>
</section>
2. layout-template
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { Route } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { LayoutPage } from './layout/layout.page';
import { BrowserModule } from '@angular/platform-browser';
import {
provideRouter,
withEnabledBlockingInitialNavigation,
RouteReuseStrategy,
} from '@angular/router';
export const appRoutes: Route[] = [
{
path: '',
title: 'Landing',
data: {
menu: true,
},
component: LayoutPage,
children: [
{
path: '',
loadComponent: () =>
import('./pages/landing/landing.page').then((m) => m.LandingPage),
},
],
},
];
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(appRoutes, withEnabledBlockingInitialNavigation()),
importProvidersFrom(IonicModule.forRoot(), BrowserModule),
],
};
3. app.config.ts
반응형
LIST
'IT' 카테고리의 다른 글
css 줄바꿈 / flex-wrap (0) | 2023.06.06 |
---|---|
angular navigateByUrl 예시 (0) | 2023.06.06 |
nx angular tailwind install cli (0) | 2023.06.05 |
Ionic Angular Project start CLI 아이오닉 앵귤러 프로젝트 생성 (0) | 2023.06.05 |
Can't have multiple template bindings on one element. Use only one attribute prefixed with 에러 해결 (0) | 2023.06.05 |