为什么选择Angular 6?与以前的版本相比有重大变化吗?

时间:2018-12-05 07:14:06

标签: angular5 version

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

1 个答案:

答案 0 :(得分: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