Can anyone point me to where 'import' is documented -- the way it's used in
the Angular 2 examples? i.e.
import {Component, bootstrap, provide} from 'angular2/angular2';
When I look at the Typescript 1.5 documentation, the import examples there
look pretty different:
import someMod = require('someModule');
What I'm most interested in knowing is how to define and include classes
besides the main app.ts. Let's say my app structure is:
index.html
[src]
[app]
app.ts
[hello]
hello.ts
So in app.ts I want to import the class defined in hello.ts. Do I do:
import {Hello} from 'app/hello';
or
import {Hello} from 'srs/app/hello';
or something else entirely? Or maybe "hello" can't be in "src/app" but
should just be in "src"?
TIA!
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.