index.html в Webpackкак использовать Webpack в визуальной студии 2013
<!doctype html>
<html>
<head>
<base href="/">
<title>ng2-webpack</title>
</head>
<body>
<my-app>Loading content here ...</my-app>
</body>
</html>
Index.html в SystemsJS
<!DOCTYPE html>
<html>
<head>
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
System.import('app').catch(function (err) { console.error(err); });
</script>
</head>
<body>
<my-app>Loading content here ...</my-app>
</body>
</html>
базы данных получить код
this.headers = new Headers();
this.headers.append('Content-Type', 'application/json; charset=utf-8');
let options = new RequestOptions({
method: RequestMethod.Post,
url: "data.aspx/getvalue",
headers: this.headers,
body:{log:this.login}
});
return this._http.request(new Request(options)).retry(2)
.map((response: Response)=>this.extractData(response))
.do(data => {this.temp=data, console.log('getStepList:'+ JSON.stringify(JSON.parse(this.temp.d)))})
.catch(this.handleError);
с использованием systemsjs
При использовании npm run command
все ts file converted into js
затем run index.html in visual studio
тогда все отлично работает
Коммутационные systemjs в WebPack
Когда переключатель systemjs to webpack
для развития Index.html not include any file
и ts file converted into js
только тогда, когда сборка с использованием npm run build
каждый раз, когда мне приходится создавать приложение, тогда помещаем эту папку dist в визуальную студию для получения данных из базы данных.
I felt this process headache so can any one tell me how to use in `visual studio 2013`