An Angular module that allows users to selectively print elements, as well as provides optimizations for printing. By default, printing margins are minimized.
- make sure bower is installed
- navigate to the root directory of your project and execute the command "bower install angular-print"
- import module to your Angular app using the name "AngularPrint"
- Directive type: Attribute
- Makes element and its children visible for printing
I'll print
Me, too!
I won't
- Directive type: Attribute
- Makes element and its children only visible for printing
I'll print, but until then nobody wants me
Me, too!
Me, too! Except that people still want to look at me in the meantime...
- Directive type: Attribute
- Makes element invisible during printing, but it is replaced by blank space
I won't print
Me, either
I'll print, but those bozos upstairs are still taking up space
- Directive type: Attribute
- Makes element invisible during printing
I won't print
Me, either
I'll print, and those bozos upstairs will finally stop making such a ruckus
- Directive type: Attribute
- Toggles print-visibility based on expression
- Directive type: Attribute
- Adds onClick callback to element that will trigger printing
to happen if you click me
```- Directive type: Attribute
- Will cause printing to be landscape instead of portrait
to be landscape
```- Directive type: Attribute
- Prevents page breaks on element
- Directive type: Attribute
- Optimizes table for printing. This includes keeping 'td' cell content from being cut-off by page breaks.
- Must be passed an array scope object representing the data presented by the table
- Column headers will persist between pages only if the `````` and `````` tags are used correctly
Unwanted field | Name | Address | Phone |
{{person.unwantedInfo}} | {{person.name}} | {{person.address}} | {{person.phone}} |
Name | Address | Phone |
{{person.name}} | {{person.address}} | {{person.phone}} |