This file contains hidden or 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
#!/bin/sh | |
PAGE=${1}Page | |
FILE=$(echo "$1" | sed 's/[A-Z]/-\l&/g;s/.//') | |
cat << EOF >${FILE}.module.ts | |
import { $PAGE } from './$FILE'; | |
import { NgModule } from '@angular/core'; | |
import { IonicPageModule } from 'ionic-angular'; |
This file contains hidden or 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
<ion-grid> | |
<ion-row> | |
<ion-col *ngFor="let option of options" | |
(click)="selectOption(option)" | |
[class.selected]="option.selected" | |
[class.pulse]="option.selected" | |
class="scroll-item selectable-icon"> | |
<img [src]="option.image"/> | |
<p>{{option.text}}</p> | |
<ion-icon name="ios-checkmark-circle"></ion-icon> |
This file contains hidden or 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 { NgModule } from '@angular/core'; | |
import { IonicApp, IonicModule } from 'ionic-angular'; | |
import { MyApp } from './app.component'; | |
import { HomePage } from '../pages/home/home'; | |
import { AngularFireModule } from 'angularfire2'; | |
// Must export the config | |
export const firebaseConfig = { | |
apiKey: '<your-key>', | |
authDomain: '<your-project-authdomain>', |
This file contains hidden or 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
chats: { | |
id_abc: { | |
title: "title", | |
lastMessage: "....." | |
} | |
} | |
members: { | |
id_abc: { | |
yann: true, |
NewerOlder