Hi, 

I am facing a challenge with Angular2 AoT and any help will be a big one 
for me since I am stuck.

I have a simple hello world app which has main.js, home.module.ts, 
home.component.ts, home.component.html and home.service.ts. This code works 
well using Angular2 without AoT. 

After I perform AoT and Rollup precisely as per angular.io steps in 
cookbook, i am getting error: "Uncaught ReferenceError: module is not 
defined" and I have no clue why this is happening.

My Home.Component.ts is marked like this:

@Component({
    selector: 'rf-home',
    moduleId: module.id,   // i m setting this module.id so that I can use 
relative template paths in my code. Helps in Dev env.
    templateUrl: 'Home.component.html',
    providers: [HomeService]
})


Someone out there, please help.

Thanks and regards,
Abhijeet Phirke

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

Reply via email to