| TYPE | CONVENTION | EXAMPLE |
|---|---|---|
| App Module | UpperCamel | MyApp |
| Controller | UpperCamel | SomeController |
| Service | UpperCamel | SomeDataService |
| Factory | UpperCamel | SomeFactory |
| Directive | lowerCamel | someDirective |
| Filter | lowerCamel | someFilter |
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('SomeApp').factory('SomeFactory', | |
| function ($rootScope) { | |
| var Something = function () { | |
| this.Stuff = []; | |
| this.AlertStuffLength = function () { | |
| alert("This much Stuff: " + this.Stuff.length); | |
| } | |
| this.AddStuff = function (_stuff) { | |
| this.Stuff.push(_stuff); | |
| } |
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
| transition: all 1s ease-in-out; |
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
| { | |
| "window.menuBarVisibility": "toggle", | |
| "workbench.activityBar.visible": false, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "editor.roundedSelection": false, | |
| "editor.minimap.enabled": true, | |
| "editor.minimap.renderCharacters": false, | |
| "editor.quickSuggestions": { | |
| "other": true, | |
| "comments": true, |
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("someApp", []) | |
| .directive("someDirective", function () { | |
| return { | |
| scope:{ | |
| someStringLiteral:"@", | |
| someTwoWayBinding:"=", | |
| someFunction:"&" | |
| }, | |
| controllerAs:"vm", |
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
| extends Node | |
| export var node_paths = [] | |
| var player_node = null | |
| var message_node = null | |
| var nodes = [] | |
| func _ready(): | |
| message_node = get_node("../Message") | |
| player_node = get_node("../Player") | |
| for node_path in node_paths: |
- Install Yarn - https://yarnpkg.com/lang/en/docs/install/#windows-stable
- Install Node ( for CLI only)
npm i -g @angular/cli@latest
ng config -g cli.packageManager yarn
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
| this.titleService.emitterN$ | |
| .takeUntil(this.componentDestroyed$) | |
| .subscribe( | |
| (data: any) => | |
| { | |
| // ... do something N | |
| } | |
| ); | |
| } |