From 5c895d9d0805c3077485de8669c725d67695ef68 Mon Sep 17 00:00:00 2001 From: Julien LE COUPANEC Date: Mon, 25 Jun 2018 19:12:22 +0100 Subject: [PATCH 1/9] Add AngularJS --- README.md | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 967bf41..5d724e7 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,15 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Command line interface -* [Bash](languages/bash.sh) +- [Bash](languages/bash.sh) #### Imperative -* [PHP](languages/php.php) +- [PHP](languages/php.php) #### Functional -* [JavaScript](languages/javascript.js) +- [JavaScript](languages/javascript.js) @@ -40,13 +40,13 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Python -* [Django](backend/django.py) +- [Django](backend/django.py) #### Javascript -* [Feathers.js](backend/feathers.js) -* [Moleculer](backend/moleculer.js) -* [Node.js](backend/node.js) +- [Feathers.js](backend/feathers.js) +- [Moleculer](backend/moleculer.js) +- [Node.js](backend/node.js) ### 🌐 Frontend @@ -56,14 +56,15 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Basics -* [HTML5](frontend/html5.html) +- [HTML5](frontend/html5.html) #### Frameworks -* [React.js](frontend/react.js) -* [Vue.js](frontend/vue.js) -* [Ember.js](frontend/ember.js) -* [Angular](frontend/angular.js) +- [React.js](frontend/react.js) +- [Vue.js](frontend/vue.js) +- [Ember.js](frontend/ember.js) +- [Angular](frontend/angular.js) +- [AngularJS](frontend/angularjs.js) ### 🗃️ Databases @@ -73,7 +74,7 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### NoSQL -* [Redis](databases/redis.sh) +- [Redis](databases/redis.sh) ### 🔧 Tools @@ -83,15 +84,15 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Development -* [VIM](tools/vim.txt) -* [Xcode](tools/xcode.txt) +- [VIM](tools/vim.txt) +- [Xcode](tools/xcode.txt) #### Infrastructure -* [Docker](tools/docker.sh) -* [Kubernetes](tools/kubernetes.sh) -* [Nanobox Boxfile](tools/nanobox_boxfile.yml) -* [Nanobox CLI](tools/nanobox_cli.sh) +- [Docker](tools/docker.sh) +- [Kubernetes](tools/kubernetes.sh) +- [Nanobox Boxfile](tools/nanobox_boxfile.yml) +- [Nanobox CLI](tools/nanobox_cli.sh) ## 🙌🏼 How to Contribute? From faaebc08c9b21d53563f3690c1a6aa4cd82cc739 Mon Sep 17 00:00:00 2001 From: Julien LE COUPANEC Date: Mon, 25 Jun 2018 19:24:34 +0100 Subject: [PATCH 2/9] Improve Angular cheatsheet --- frontend/angular.js | 274 ++++++++++++++++++++++++++------------------ 1 file changed, 164 insertions(+), 110 deletions(-) diff --git a/frontend/angular.js b/frontend/angular.js index 102bfd5..f894bb8 100644 --- a/frontend/angular.js +++ b/frontend/angular.js @@ -4,343 +4,397 @@ * STYLE GUIDE: https://angular.io/guide/styleguide * ******************************************************************************************* */ + ``` npm install --save @angular/cli // declarative and flexible JavaScript framework for building UI ng serve // serve the app ng build // build the release ``` + /* ******************************************************************************************* - * Bootstrapping + * BOOSTRAPPING + * https://angular.io/guide/bootstrapping * ******************************************************************************************* */ + import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -platformBrowserDynamic().bootstrapModule(AppModule); // Bootstraps the app, using the root component from the specified NgModule. +platformBrowserDynamic().bootstrapModule(AppModule); + /* ******************************************************************************************* - * NgModules + * NG MODULES + * https://angular.io/guide/ngmodules * ******************************************************************************************* */ + + import { NgModule } from '@angular/core'; -@NgModule({ declarations: ..., imports: ..., -exports: ..., providers: ..., bootstrap: ...}) -class MyModule {} +@NgModule({ + declarations: ..., + imports: ..., + exports: ..., + providers: ..., + bootstrap: ... +}) + // Defines a module that contains components, directives, pipes, and providers. +class MyModule {} -declarations: [MyRedComponent, MyBlueComponent, MyDatePipe] // List of components, directives, and pipes that belong to this module. +declarations: [MyRedComponent, MyBlueComponent, MyDatePipe] -imports: [BrowserModule, SomeOtherModule] // List of modules to import into this module. Everything from the imported modules is available to declarations of this module. +imports: [BrowserModule, SomeOtherModule] -exports: [MyRedComponent, MyDatePipe] // List of components, directives, and pipes visible to modules that import this module. +exports: [MyRedComponent, MyDatePipe] -providers: [MyService, { provide: ... }] // List of dependency injection providers visible both to the contents of this module and to importers of this module. +providers: [MyService, { provide: ... }] -bootstrap: [MyAppComponent] // List of components to bootstrap when this module is bootstrapped. +bootstrap: [MyAppComponent] /* ******************************************************************************************* - * Template syntax + * TEMPLATE SYNTAX + * https://angular.io/guide/template-syntax * ******************************************************************************************* */ -// + // Binds property value to the result of expression firstName. +// -//
// Binds attribute role to the result of expression myAriaRole. +//
-//
// Binds the presence of the CSS class extra-sparkle on the element to the truthiness of the expression isDelightful. +//
-//
// Binds style property width to the result of expression mySize in pixels. Units are optional. +//
-//