--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
You can order the imports in any way you want.
--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
I do not believe there are any best practices - Google turns up nothing and if it's not in Google, it doesn't exist (a little humor there).
The ordering of the imports has no effect on the application and, IMO, it does not increase readability/understanding when you enforce an arbitrary sort on the imports.
The only thing I do is split the imports into two groups, placing external modules first like so:import {Injectable, provide} from '@angular/core';import {Http} from '@angular/http';import {MyComponent} from './my-component';
import { AntMan, Zoro } from './heroes';import { Bat } from './equipments';
import { AntMan } from './heroes';import { Bat } from './equipments';import { Zoro } from './heroes';
Here is a link to the style-guide
--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.