martin
martin

Reputation: 96969

Coding standards for Angular2/TypeScript

I'm wondering if there's at least some community consensus on how to write reusable Angular2 code in TypeScript. I tried to summarise what I found out and what I'd like to know in context of Angular2.

Module/App directory structure and file names

Modules

Using 3rd party modules

Upvotes: 2

Views: 7151

Answers (2)

acdcjunior
acdcjunior

Reputation: 135862

There's the Angular 2 Style Guide (https://github.com/mgechev/angular2-style-guide), as featured in Angular2 News:

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...

Upvotes: 4

Brocco
Brocco

Reputation: 65043

Angular 1 had a community accepted style guide written by John Papa. There will be something similar created for Angular 2 in fact you can see the start of this coming together with the Tour of Heroes examples in place at angular.io

Upvotes: 1

Related Questions