This section says it all: https://angular.io/docs/ts/latest/guide/style-guide.html#!#03-06
Order your import statements alphabetically by module name. So, your 'import ... "./heroes";' line should come after your 'import ... "./equipment";' line. Order the destructured imported assets within those lines alphabetically. On Fri, Jul 22, 2016 at 12:23 PM, Supun Budhajeewa <[email protected]> wrote: > Thanks for the reference Sander. > > I see that the Style Guide recommends to "[order] imported assets > alphabetically.". > > But one curly brace can include multiple assets. Eg: > > import { AntMan, Zoro } from './heroes'; > import { Bat } from './equipments'; > > > I feel that Zoro should not be included before Bat. > > What do you think of instead doing this: > > import { AntMan } from './heroes'; > import { Bat } from './equipments'; > import { Zoro } from './heroes'; > > > On Fri, Jul 22, 2016 at 7:39 PM, Sander Elias <[email protected]> > wrote: > >> Here is a link to the style-guide >> <https://angular.io/docs/ts/latest/guide/style-guide.html> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/Vin8cQxumdA/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Supun Budhajeewa > --- > Website: http://budhajeewa.com > Blog: http://blog.budhajeewa.com > Microblog: http://mblog.budhajeewa.com > Google+: http://j.mp/gplusbudhajeewa > Twitter: https://twitter.com/budhajeewa > Facebook: https://facebook.com/budhajeewa > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Lucas Lacroix Computer Scientist System Technology Division, MEDITECH <http://ehr.meditech.com> 781-774-2293 -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
