User Tools

Site Tools


dev:browser_staff:angular5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:browser_staff:angular5 [2017/12/20 17:25] – created ericksondev:browser_staff:angular5 [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 7: Line 7:
   * Bootstrap Version 4   * Bootstrap Version 4
     * https://getbootstrap.com/     * https://getbootstrap.com/
-  * Bootstrap 4 Utility Classes 
-    * https://getbootstrap.com/docs/4.0/utilities/ 
-    * Some of these exist in BS 3, but they are expanded in BS 4.   
-    * Margins, padding, text, colors, borders, etc. 
   * ng-bootstrap -- Angular 5 / Bootstrap 4 compatible Bootstrap controls   * ng-bootstrap -- Angular 5 / Bootstrap 4 compatible Bootstrap controls
     * https://ng-bootstrap.github.io/#/components/     * https://ng-bootstrap.github.io/#/components/
-  * Potential replacements for Glyphicons, which are deprecated in Bootstrap 4 and have license restrictions.   
-    * https://getbootstrap.com/docs/4.0/extend/icons/ 
-    * I tested the Google Material Icons and they work well and use an Apache 2 license.  Attribution is optional.   
-      * https://material.io/icons/ 
   * Webpack -- JS bundling, minification, lazy loading, and more used by Angular5.   * Webpack -- JS bundling, minification, lazy loading, and more used by Angular5.
     * https://webpack.js.org/     * https://webpack.js.org/
Line 25: Line 17:
   * Upgrade Process   * Upgrade Process
     * https://angular.io/guide/upgrade     * https://angular.io/guide/upgrade
-    * https://angular-2-training-book.rangle.io/handout/migrate/ng-upgrade/order_of_operations.html+ 
 +==== Bootstrap 4 Notes ==== 
 + 
 +  * The Ang5-compatible bootstrap library ng-bootstrap supports BS4 only. 
 +  * Version 4 is mostly backward compatible with version 3. 
 +  * The "panel" is no more -- replaced with "card"
 +  * Glyphicons are deprecated (and have license restrictions).  BS suggests some alternatives. 
 +    https://getbootstrap.com/docs/4.0/extend/icons/ 
 +    * I tested the Google Material Icons and they work well and use an Apache 2 license.  Attribution is optional. 
 +      * https://material.io/icons/ 
 +  * The utility classes have been expanded 
 +    * https://getbootstrap.com/docs/4.0/utilities/ 
 +    * Margins, padding, text, colors, borders, and more! 
 +    * These remove the need to write a lot of local CSS.  Want a small amount of margin up top? class="mt-1" 
 + 
 +==== Upgrade Path Recommended by Angular ==== 
 + 
 +See also https://angular-2-training-book.rangle.io/handout/migrate/ng-upgrade/order_of_operations.html 
 + 
 +=== I. Follow the AngularJS Style Guide === 
 + 
 +=== II. Use a Module Loader === 
 + 
 +  - Angular5 (well, ng-cli) uses Webpack by default. 
 +  - May be implemented independent of any Ang5 upgrade plans. 
 +  - Improved options for creating of JS, etc. bundles 
 +  - Can be implemented in low-impact phases. 
 +    - Phase I: Use webpack as a drop-in replacement for Grunt for compiling builds (and use npm to run karma unit tests). 
 +      - No application code changes are required. 
 +      - I have a branch that does this (plus Angular 1.6 -- https://bugs.launchpad.net/evergreen/+bug/1739803 [pushed to 3.1-beta]) 
 +    - Phase II: Start using ES6-style module 'import' statements for specifying dependencies. 
 +      - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import 
 +      - These ultimately replace <script/> imports 
 + 
 +=== III. Migrating to TypeScript === 
 + 
 +=== IV. Using Component Directives === 
 + 
 +=== V. Upgrade with ngUpgrade === 
 + 
dev/browser_staff/angular5.1513808732.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.