https://github.com/sdwfqin/angulardemo
Angular入门练习(含官方例子)
https://github.com/sdwfqin/angulardemo
angular html5 typescript
Last synced: about 2 months ago
JSON representation
Angular入门练习(含官方例子)
- Host: GitHub
- URL: https://github.com/sdwfqin/angulardemo
- Owner: sdwfqin
- Created: 2017-04-22T10:26:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T04:22:12.000Z (about 9 years ago)
- Last Synced: 2025-09-01T09:24:25.525Z (10 months ago)
- Topics: angular, html5, typescript
- Language: TypeScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular+Bootstrap
## Bootstrap与Jquery导入方法
1. 在工程目录下面安装以下两个包
``` bash
npm install -S jquery bootstrap
```
2. 将这两个第三方框架放入到依赖中去
``` bash
npm install -D @types/jquery @types/bootstrap
```
3. 修改.angular-cli.json文件
``` json
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/bootstrap/dist/js/bootstrap.js"
],
```
4. 修改tsconfig.app.json文件
``` json
"types": [
"jquery",
"bootstrap"
]
```