AngularJS in HEAD vs BODY

后端 未结 4 792
失恋的感觉
失恋的感觉 2020-12-02 07:37

In all of the AngularJS examples, the Angular library is placed in the HEAD tags of the document. I have an existing project that has been built upon the HTML5 Boilerplate l

4条回答
  •  清歌不尽
    2020-12-02 07:58

    Not necessarily.

    Please take a look at this http://plnkr.co/edit/zzt41VUgR332IV01KPsO?p=preview. Where the angular js is placed at the bottom of the page, and still renders the same output if it were to be placed at the top.

提交回复
热议问题