How to append a stylesheet to <head> in AngularJS $routeProvider?

后端 未结 4 1904
一生所求
一生所求 2020-12-15 01:59

I want to load a specific CSS file only when a user accesses the contact.html view on my AngularJS app/site. I found this answer which almost made sense to me H

4条回答
  •  再見小時候
    2020-12-15 02:43

    I think the best/simplest answer is one I left here. Someone else asked the same question, so I came up with some simple code and a small github repo to handle this scenario.

提交回复
热议问题