This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ViewChild } from '@angular/core'; | |
import { Platform, MenuController, Nav } from 'ionic-angular'; | |
import { StatusBar, Splashscreen } from 'ionic-native'; | |
// Décorateur du composant principal de l'application | |
@Component({ | |
templateUrl: 'app.html' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Utilisation de la directive pour créer un burger menu / https://goo.gl/YnrqgP --> | |
<ion-menu [content]="content"> | |
... | |
</ion-menu> | |
<!-- Utilisation de la directive pour afficher les vues de différentes routes / https://goo.gl/PAHKZR --> | |
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ViewChild } from '@angular/core'; | |
import { Platform, MenuController, Nav } from 'ionic-angular'; | |
import { StatusBar, Splashscreen } from 'ionic-native'; | |
// Import des RXJS pour gérer les promesses | |
import './rxjs-operators'; | |
// Import des composants à utiliser dans le burger menu | |
import { AppHomepage } from '../pages/app-homepage/app.homepage'; | |
import { AppDashboard } from '../pages/dashboard/dashboard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Utilisation de la directive pour créer un burger menu / https://goo.gl/YnrqgP --> | |
<ion-menu [content]="content"> | |
<!-- Utilisation de la directive pour créer le header du burger menu --> | |
<ion-header> | |
<ion-toolbar> | |
<ion-title>Menu</ion-title> | |
</ion-toolbar> | |
</ion-header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Class principales du module | |
import { NgModule, ErrorHandler } from '@angular/core'; | |
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; | |
// Import des composants de l'application | |
import { MyApp } from './app.component'; | |
import { AppHomepage } from '../pages/app-homepage/app.homepage'; | |
import { AppDashboard } from '../pages/dashboard/dashboard'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import de la class permettant de créer un composant | |
import { Component } from '@angular/core'; | |
// Décorateur du composant | |
@Component({ | |
selector: 'home-page', | |
templateUrl: 'app.homepage.html' | |
}) | |
// Export de la class du composant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Utilisation de la directive pour créer le header de la page --> | |
<ion-header> | |
<!-- Utilisation de la directive pour créer la barre de navigation de la page --> | |
<ion-navbar> | |
<!-- Utilisation de la directive pour créer bouton burger menu --> | |
<button ion-button menuToggle> | |
<ion-icon name="menu"></ion-icon> | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
// Import du composant à utiliser dans la route dynamique | |
import { MemoList } from '../memo-list/memo.list'; | |
// Décorateur du composant AppDashboard | |
@Component({ | |
selector: 'dashboard-page', | |
templateUrl: 'dashboard.html', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Utilisation de la directive pour créer le header de la page --> | |
<ion-header> | |
</ion-header> | |
<!-- Utilisation de la directive pour afficher le contenu de la page --> | |
<ion-content> | |
<!-- Utilisation de la directive permettant de générer des listes / https://goo.gl/knE6Rx --> | |
<ion-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Multistep Form</title> | |
</head> | |
<body> | |
<!-- multistep form --> |
OlderNewer