Skip to content

Instantly share code, notes, and snippets.

@jckeen
jckeen / angular2codestyle.xml
Last active July 7, 2023 05:29
Angular 2 TypeScript Code Style For WebStorm
<!--
These are code style settings, based off the Style Guide for Angular 2:
https://angular.io/docs/ts/latest/guide/style-guide.html
WebStorm does not currently reformat code based off of tslint.json settings.
This is an attempt to set TypeScript settings for Code Style to follow the Style Guide.
I will update this as I find differences.
To Import: Settings > Editor > Code Style > Import
-->
<code_scheme name="Angular 2">
<TypeScriptCodeStyleSettings>
@jckeen
jckeen / firebase.service.ts
Created October 12, 2016 20:42
Access Firebase SDK from instance created by AngularFire2
import { FirebaseApp } from 'angularfire2';
import { Injectable, Inject } from '@angular/core';
/**
* After importing AngularFire2 with AngularFireModule.initializeApp(firebaseConfig),
* you can use this to access that instance that was created with your configuration
*/
@Injectable()
export class FirebaseService {