- comment-format
- curly
- eofline
- import-spacing
- indent
- max-line-length
- no-trailing-whitespace
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
| angular.module('app').factory('myService', function($q, $http){ | |
| var data; | |
| var dataPromise; | |
| return { | |
| getData: getData | |
| } | |
| function getData(){ | |
| //If the data is already here, return it in a resolved promise |
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
| var foo = {}; | |
| Object.defineProperty(a, "bar",{ | |
| get: getFoo, | |
| set: setFoo | |
| }); | |
| export default foo; | |
| function getFoo(){ | |
| //do shiz |
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
| angular.module('app') | |
| .component('myComponent', { | |
| templateUrl: 'foo/bar/myComponent.html', // OLD WAY | |
| controller: function(){ | |
| //controller code | |
| } | |
| }); | |
| angular.module('app') |
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
| // ng-include templates | |
| require('angulartemplate!./foo/bar/includedtemplate.html'); | |
| require('angulartemplate!./foo/bar/anotherincludedtemplate.html'); | |
| // and so on |
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
| const webpackconfig = { | |
| module:{ | |
| rules: [ | |
| { | |
| test: /\.ts$/, | |
| use: [ | |
| { | |
| loader: '@ngtools/webpack' | |
| } | |
| ] |
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
| [ | |
| { | |
| path: 'team/:id', | |
| loadChildren: './team/team.module#TeamModule' | |
| } | |
| ] |
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
| export class FooClass{ | |
| constructor( | |
| private fb: FirebaseApp, | |
| private fs: AngularFirestore, | |
| ){ | |
| const a = fb.firestore(); | |
| const b = this.fs; | |
| // Are `a` and `b` pointing at the same thing? | |
| } |
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
| // 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` |
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
| package.json |