Modify DOM elements outside root component

前端 未结 1 1199
时光取名叫无心
时光取名叫无心 2021-01-27 10:17

My Angular 2 app is structured something like this:




    
    

        
相关标签:
1条回答
  • 2021-01-27 10:31

    You can either use normal JS DOM access or use the DOM adapter as shown in the Title service (source)

    https://github.com/angular/angular/blob/master/CHANGELOG.md#400-beta0-2016-12-15 also introduces a Meta service to create and modify <meta> tags.

    0 讨论(0)
提交回复
热议问题