I'm upgrading from Angular beta 17 (the last beta) or rc.0. [One step at a
time: once that's working, I'll upgrade to more recent rc's.)
I used to bootstrap using this in app.ts:
import {bootstrap} from 'angular2/platform/browser';
and after my class definition:
bootstrap(CSReportMain, [
ROUTER_PROVIDERS,
provide(APP_BASE_HREF, { useValue: '/' } ),
provide(LocationStrategy, { useClass: HashLocationStrategy })
]).catch(err => console.error(err));
I tried replacing with:
import {bootstrap} from '@angular/platform-browser';
but "bootstrap" is not defined in that. What do we use now?
I looked at the latest tutorial, and it's talking about creating an
app.component.js and app.main.js, and creating its 'own' alternative to
modules. (My app already uses CommonJS modules and ECMAScript5.) I don't
really follow all of it... someone help me make sense of all this!
-Vern
--
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.