User Tools

Site Tools


dev:angular_dev_best_practices

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:angular_dev_best_practices [2019/08/09 21:12] – [Evergreen Angular Development Best Practices] reorganizing, adding RxJS tip sandbergjadev:angular_dev_best_practices [2023/11/24 23:05] (current) – [Code quality] update outdated command sandbergja
Line 10: Line 10:
   * Run 'ng lint' before committing.   * Run 'ng lint' before committing.
     * This does more than check style, it also warns when an import pulls in too much code, among other things.     * This does more than check style, it also warns when an import pulls in too much code, among other things.
-  * Make sure that 'ng xi18n' runs before committing (some i18n syntax errors are not caught by ng build)+  * Make sure that 'ng extract-i18n' runs before committing (some i18n syntax errors are not caught by ng build)
   * use camelCase variables when possible for consistency.  (Note fields on IDL objects don't apply).   * use camelCase variables when possible for consistency.  (Note fields on IDL objects don't apply).
   * Use 2-space indentation in HTML files   * Use 2-space indentation in HTML files
Line 35: Line 35:
     * The [[https://www.w3.org/TR/wai-aria-practices-1.1/|WAI-Aria Authoring Practices]] may help you determine the appropriate keyboard interactions for more complex widgets     * The [[https://www.w3.org/TR/wai-aria-practices-1.1/|WAI-Aria Authoring Practices]] may help you determine the appropriate keyboard interactions for more complex widgets
     * Don't add Bootstrap's "btn" class to unfocusable elements, like <span>s, <label>s, or <a>s that don't also have a "href" attribute.  Use a tag that is already focusable instead, like <button> or <a> with a "href" attribute.     * Don't add Bootstrap's "btn" class to unfocusable elements, like <span>s, <label>s, or <a>s that don't also have a "href" attribute.  Use a tag that is already focusable instead, like <button> or <a> with a "href" attribute.
 +  * Make sure that your screens have an <eg-staff-banner> at the top to let users know where they are.
  
  
dev/angular_dev_best_practices.1565399540.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.