Skip to content

Instantly share code, notes, and snippets.

Working from home

Aaron Frost aaronfrost

Block or report user

Report or block aaronfrost

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tslint.json.js
// If tslint@5.0.0+
"extends": [
"rules": {
"prettier": true
View tslint.json
"extends": [
aaronfrost /
Last active Feb 22, 2018
Each of the following tslint rules will conflict with Prettier. You will want to remove them from your tslint.json if they exist.

Delete the following rules from your tslint.json to avoid conflict w/ Prettier

If any of them are missing, that is fine. Just move on.
- comment-format
- curly
- eofline
- import-spacing
- indent
- max-line-length
- no-trailing-whitespace
View prettier.config.js
// The values provided below are the defaults.
// If you don't specify one of these properties,
// the default value will be applied.
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: true,
semi: true,
singleQuote: false,
trailingComma: 'none', // other options `es5` or `all`
aaronfrost / question.ts
Created Dec 7, 2017
Firestore question
View question.ts
export class FooClass{
private fb: FirebaseApp,
private fs: AngularFirestore,
const a = fb.firestore();
const b = this.fs;
// Are `a` and `b` pointing at the same thing?
aaronfrost / sampleroute.ts
Created Jul 20, 2017
Sample Routes for Angular App
View sampleroute.ts
path: 'team/:id',
loadChildren: './team/team.module#TeamModule'
aaronfrost / webpack.config.js
Created Jun 23, 2017
ngtools/webpack with Loader Support
View webpack.config.js
const webpackconfig = {
rules: [
test: /\.ts$/,
use: [
loader: '@ngtools/webpack'
aaronfrost / app.js
Created Apr 29, 2017
load template for ng-include
View app.js
// ng-include templates
// and so on
aaronfrost / myComponent.js
Last active Apr 29, 2017
templateUrl vs template
View myComponent.js
.component('myComponent', {
templateUrl: 'foo/bar/myComponent.html', // OLD WAY
controller: function(){
//controller code
You can’t perform that action at this time.