1

I am trying to load what I call the Core Angular2 module for my application. The module is being developed using Typescript. You can think of it as the same quick start tutorial on the Angular.IO site.

The change I am trying to make is to load my Module from 2 levels deep. For example. The tutorial load the Main.js file from the root directory. I want to load the Main.js file from the directory /assets/js/core/Main.js

1 Answer 1

2

For your System.import do:

System.import('assets/js/core/main') 

Instead of the default you have there, that should do it. This tells SystemJS where the main app file is.

Sign up to request clarification or add additional context in comments.

2 Comments

Mark that did work, I had to change the packages object name under System.config object from app to assets then all worked fine. Thanks a million I was banging my head for well over the last 3 days trying to get that to work
Glad to help! =) I know the feeling. Not fun at all haha

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.