为什么使用Angular 8?与以前的版本相比有重大变化吗?

问题描述 投票:0回答:1

我的公司必须为使用typeScript的新项目选择angular版本。版本7和版本8有什么区别?

angular5 version
1个回答
1
投票
Changes are mostly related to the bug/feature & re-introduce more things.<br>

1. some imports for rxjs have been changed like below one <br><br>
instead of -<br>
import { Observable } from 'rxjs/Observable';<br>
import { Subject } from 'rxjs/Subject';<br>
Use a single import -<br>
import { Observable, Subject } from 'rxjs';<br>

2. .angular-cli.json now changed to angular.json<br><br>
path reference has been for the bootstrap import has changed now <br>
earlier it was used to be <br><br>
"styles": [
            "../node_modules/bootstrap/dist/css/bootstrap.min.css"
          ],<br><br>
Now,
"styles": [
            "node_modules/bootstrap/dist/css/bootstrap.min.css"
          ],

There are lot more changes that are done. For details you can refer the below link for getting more info.<br>
https://www.code-sample.com/2017/11/angular-5-vs-angular-6-new-features.html
© www.soinside.com 2019 - 2024. All rights reserved.