An open API service indexing awesome lists of open source software.

https://github.com/sdwfqin/angulardemo

Angular入门练习(含官方例子)
https://github.com/sdwfqin/angulardemo

angular html5 typescript

Last synced: about 2 months ago
JSON representation

Angular入门练习(含官方例子)

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"
]
```