Angular 2 is the latest framework for building web applications using typescript. Recently, angular team is skipped the version 3.x because, router package is shipped with 3.x previously, so instead of putting into 3.x, choose to move to 4.x.

Showing posts with label systemjs. Show all posts
Showing posts with label systemjs. Show all posts

Sunday, 20 November 2016

Systemjs in angular2 - Universal dynamic module loader



Problem :
If the project having lot more dependencies, difficult to maintain.
Lot more script tags are problem.
We  have a SystemJS, which can solve all these problems.

SystemJS is a very good dynamic module loader an open source javascript framework.
When we create a project, we devide the project into small components.
For example, I am building an HRMS system. I will create component for Employee, Departments
I will add Employee.js to js folder

function Employee() {
}
Then add Departments.js to js folder
function Department(){
}

In order to load these files in my html, I need to add

<html>
<head>
<meta charset=”utf-8” />
</head>

</html>








Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts