angularjs2 公共部分
发布时间:2020-12-17 09:56:15 所属栏目:安全 来源:网络整理
导读:import {bootstrap} from 'angular2/platform/browser';import {AppComponent} from './app';bootstrap(AppComponent).catch(err = console.error(err));/*Copyright 2016 Google Inc. All Rights Reserved.Use of this source code is governed by an MIT-s
import {bootstrap} from 'angular2/platform/browser'; import {AppComponent} from './app'; bootstrap(AppComponent).catch(err => console.error(err)); /* Copyright 2016 Google Inc. All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at http://angular.io/license */ import {bootstrap} from 'angular2/platform/browser'; import {ROUTER_PROVIDERS} from 'angular2/router'; import {AppComponent} from './app'; // Add these symbols to override the `LocationStrategy` //import {provide} from 'angular2/core'; //import {LocationStrategy,// HashLocationStrategy} from 'angular2/router'; bootstrap(AppComponent,[ROUTER_PROVIDERS,//provide(LocationStrategy,// {useClass: HashLocationStrategy}) // .../#/crisis-center/ ]); /* Copyright 2016 Google Inc. All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at http://angular.io/license */
<!DOCTYPE html> <html> <head> <title>Angular 2 Demo</title> <meta name="viewport" content="width=device-width,initial-scale=1"> <!-- IE required polyfills,in this exact order --> <script src="lib/es6-shim.min.js"></script> <script src="lib/system-polyfills.js"></script> <script src="lib/shims_for_IE.js"></script> <script src="lib/angular2-polyfills.js"></script> <script src="lib/system.js"></script> <script src="lib/typescript.js"></script> <script src="lib/Rx.js"></script> <script src="lib/angular2.dev.js"></script> <script> System.config({ transpiler: 'typescript',typescriptOptions: { emitDecoratorMetadata: true },packages: {'app': {defaultExtension: 'ts'}} }); System.import('app/main') .then(null,console.error.bind(console)); </script> </head> <body> <my-app>Loading...</my-app> </body> </html> <!-- Copyright 2016 Google Inc. All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at http://angular.io/license --> <!DOCTYPE html> <html> <head> <!-- Set the base href --> <script>document.write('<base href="' + document.location + '" />');</script> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="styles.css"> <!-- IE required polyfills,in this exact order --> <script src="lib/es6-shim.min.js"></script> <script src="lib/system-polyfills.js"></script> <script src="lib/shims_for_IE.js"></script> <script src="lib/angular2-polyfills.js"></script> <script src="lib/system.js"></script> <script src="lib/typescript.js"></script> <script src="lib/Rx.js"></script> <script src="lib/angular2.dev.js"></script> <!-- Add the router library --> <script src="lib/router.dev.js"></script> <script> System.config({ transpiler: 'typescript',packages: {'app': {defaultExtension: 'ts'}} }); System.import('app/main') .then(null,console.error.bind(console)); </script> </head> <body> <my-app>loading...</my-app> </body> </html> <!-- Copyright 2016 Google Inc. All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at http://angular.io/license --> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- bash – ssh代理和crontab – 有一个很好的方式让
- Bootstrap3基础 img-rounded 图片的四个角改成圆
- 前端UI大全(针对后台管理ERP类)
- Webservice_23_SOAP的基于契约优先开发用户管理_
- angularjs – Angular UI – 网格始终以编辑模式
- scala – 如何在多个项目之间共享sbt插件配置?
- angular – ng2-charts条形图不显示数据/图形标签
- angularjs – 没有模板/模板的Angular 2 bootsra
- AngularJs ng-change手动触发事件
- ng-repeat中的AngularJS ng-form
热点阅读