how to use Angular2, systemjs locally WITHOUT node.js/npm?

后端 未结 2 833
清歌不尽
清歌不尽 2021-01-04 13:48

This is the index.html with angular-alpha35:

    
    
        
        
                


        
2条回答
  •  长情又很酷
    2021-01-04 14:23

    You should include the sfx version of angular 2 like this:

    
    

    Note that it's a self contained js file you can download locally.

    Check this sample project I made in github:

    https://github.com/alfonso-presa/angular2-es5-sample

    Edit: Check this SO question for more clarification on what sfx means: Difference between angular.dev.js and angular.sfx.dev.js

提交回复
热议问题