Skip to content

Instantly share code, notes, and snippets.

@bwiggs
Created February 25, 2015 20:39
Show Gist options
  • Save bwiggs/016a3ad049c23205ecd3 to your computer and use it in GitHub Desktop.
Save bwiggs/016a3ad049c23205ecd3 to your computer and use it in GitHub Desktop.
A simple html pre tag that dumps an angular object.
<snippet>
<content><![CDATA[
<pre>{{ ${1:object} | json}}</pre>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>dump</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
<description>pre tab to deump an ng object using the json filter</description>
</snippet>
@bwiggs
Copy link
Author

bwiggs commented Feb 25, 2015

Install with curl:

curl -o ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/ng-dump.sublime-snippet https://gist.githubusercontent.com/bawigga/016a3ad049c23205ecd3/raw/d9339317194c8bf52136d965c64120382b672bd5/ng-dump.sublime-snippet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment