Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hi I'm using angularjs to print different types of reports. I want some reports to have page numbers and others to not have it using @page in css. Since I only have one view file I cannot have different headers with different css files.

I was wondering if there was a way to override the @page css property using an angularjs directive? That way on the reports that have page numbers, the @page would look like this

@page { 
        margin:5mm 0 10mm 0;
       @bottom-left {
            content: counter(page) "/" counter(pages);
        }
}
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.