ng-paste-from demo

This is a demo implementation of ng-paste-from, an AngularJS directive to parse tabular plain text data into a model on your scope.

The directive can use any string or regular expression as row and column separators.

Documentation and source code for this demo and ng-paste-from.

Demo

This demo expects two columns: "name" and "email".

Parse errors

  • {{e}}

Parsed data

Name E-mail address
{{u.name || u[0]}} {{u.email || u[1]}}

Paste from Excel

You can paste directly from Excel into the directive. It will use tab characters as column separators.

Screenshot of an Excel document that has two columns, name and e-mail address, that have been selected and copied to the clipboard.