0

I'm building a website with AngularJS. And I'm using Plangular in order to create a customized Soundcloud Player. So I include my template like this :

<body>
  <div id="container">
   <div id="header" ng-controller="HeaderCtrl"><div ng-include="'templates/Header.tpl.html'"></div></div>
   <div id="body" ng-view></div>
   <div id=""><div ng-include="'templates/Player.tpl.html'"></div></div>
   <div id="footer" class="center" ng-controller="FooterCtrl"><div ng-include="'templates/Footer.tpl.html'"></div>
  </div>
</body>

So as you can see I got a header, a body and a footer. In the middle of it I got a player. I included the specific CSS file in that template and only in that template, but the CSS are in a way applied to my whole page. I need those css. ANd I thought that included the css only on that page would help, but it's not.

Thanks for your help guys !

1 Answer 1

1

Just prefix the CSS rules

Player.tpl.html :

<div class="player"> whatever </div>

CSS

.player .someclass {

}

.player .some-other-class {

}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.