Skip to content

Instantly share code, notes, and snippets.

View yannbf's full-sized avatar
💻
Busy!!

Yann Braga yannbf

💻
Busy!!
View GitHub Profile
#!/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';
<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>
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>',
@yannbf
yannbf / chat
Created September 27, 2016 18:27
chats: {
id_abc: {
title: "title",
lastMessage: "....."
}
}
members: {
id_abc: {
yann: true,