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
Me, too!
- Directive type: Attribute
- Makes element and its children only visible for printing
Me, too!
- Directive type: Attribute
- Makes element invisible during printing, but it is replaced by blank space
Me, either
- Directive type: Attribute
- Makes element invisible during printing
Me, either
- 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}} |