Bu thread göre, angular2 içinde modals oluşturmak için ng2-bs3-modal dahil ediyorum. Ng2-bs3-modal ve yüklediği js dosyaları (modal.js, modal-header.js gibi) varsayılan olarak uzantılarını almadığı için, deafultJsExtension: true değerini kullanmak için kullanmam gerekiyordu. (Açısal tarayıcıda yine modüllerini yükleniyor) aynı iş parçacığı göre açısal hataları önlemek için, ben bazen, şimdi, doğrudan systemjs yükleme yerine yükleme angularjs sonra yazdıktan sonraangular2 - tarayıcı bulamıyor, corejs
<script src="node_modules/es6-shim/es6-shim.min.js">
</script>
<script src="node_modules/systemjs/dist/system-polyfills.js">
</script>
<script src="node_modules/systemjs/dist/system.src.js">
</script>
<!-- 2. Configure SystemJS -->
<script>
System.config({
defaultJSExtensions: true,
packages: {
angular: { defaultExtension: false },
app: {
format: 'register',
defaultExtension: 'js'
},
},
map: {
'ng2-bs3-modal': 'node_modules/ng2-bs3-modal',
}
});
System.import('node_modules/jquery/dist/jquery.min.js')
System.import('node_modules/bootstrap/dist/js/bootstrap.min.js');
System.import('app/js/main')
.then(null, console.error.bind(console));
</script>
<script src="node_modules/angular2/bundles/angular2-polyfills.js">
</script>
<script src="node_modules/rxjs/bundles/Rx.js">
</script>
<script src="node_modules/angular2/bundles/angular2.dev.js">
</script>
system.config dahil iyi çalışıyor, bazen diyor bu browser.js, core.js bulunamadı, ayrıca system.js hatası
(konsolda GET http://localhost:3000/angular2/core.js 404 (Bulunamadı) - diyor system.src.js: 1068 Onaylamadı : yükleme veya yükleme - system.src.js: 291
birisi bunu tanımlayabilir Teşekkür