valor-software/angular2-style-guide

Name: angular2-style-guide

Owner: Valor Software

Description: Community-driven set of best practices and style guidelines for Angular 2 application development

Forked from: mgechev/angular2-style-guide

Created: 2016-02-22 13:11:41.0

Updated: 2018-03-13 18:16:38.0

Pushed: 2016-02-21 19:50:37.0

Homepage: https://mgechev.github.io/angular2-style-guide/

Size: 160

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Angular 2 Style Guide Angular 2 Style Guide

Join the chat at https://gitter.im/mgechev/angular2-style-guide

The purpose of the following style guide is to present a set of best practices and style guidelines for the development of Angular 2 applications. If you are looking for an opinionated style guide for syntax, conventions, and structuring Angular 2 applications, then you can step in!

Disclaimer: The document is in alpha version which means that some the guidelines will change and new will be added.

You are welcome to join the discussion of the best practices here.

The guidelines described below are based on:

  1. Angular 2 source code.
  2. Suggestions by Mi?ko Hevery from his technical review of “Switching to Angular 2“.
  3. My own development experience working in a team on large-scale Angular 2 application.
  4. John Papa's AngularJS 1.x style guide, for being consistent with the directory structure and testing across the different major versions of the framework.
Table of Contents
  1. Directory Structure
  2. Directives and Components
  3. Services and Dependency Injection
  4. Pipes
  5. Routing
  6. Forms
  7. Reusable libraries
  8. Testing
  9. Change Detection
  10. TypeScript specific practices
  11. ES2015 and ES2016 specific practices
  12. ES5 specific practices
  13. License
Directory Structure
Directives and Components
Services and Dependency Injection
Pipes
Routing
Forms
Reusable libraries
Testing
Change detection
TypeScript specific practices
TypeScript dependency injection
TSLint
ES2015 and ES2016 specific practices
ES5 specific practices
JSHint
JSCS
License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.