angularjs sublime text editor
Following are the steps to create snippet file for each angularjs script:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular.min.js"></script>
]]></content>
<tabTrigger>jsng</tabTrigger>
<scope>text.html</scope>
The code below represents custom auto-complete snippet for following AngularJS libraries. Create snippet files for following scripts based on above instructions.
Sublime Snippet for Inclusion of Angular.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular.min.js"></script>
]]></content>
<tabTrigger>jsng</tabTrigger>
<scope>text.html</scope>
</snippet>
Sublime Snippet for Inclusion of Angular-route.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular-route.min.js"></script>
]]></content>
<tabTrigger>jsngroute</tabTrigger>
<scope>text.html</scope>
</snippet>
Sublime Snippet for Inclusion of Angular-resource.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular-resource.min.js"></script>
]]></content>
<tabTrigger>jsngresource</tabTrigger>
<scope>text.html</scope>
</snippet>
Feel free to suggest/comment.
[adsenseyu1]
In this blog, you would get to know the essential mathematical topics you need to…
This blog represents a list of questions you can ask when thinking like a product…
AI agents are autonomous systems combining three core components: a reasoning engine (powered by LLM),…
Artificial Intelligence (AI) has evolved significantly, from its early days of symbolic reasoning to the…
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…
View Comments
It's good to know you can create your own snippets, but I prefer to use Bower to handle including 3rd party frameworks and libraries. http://bower.io/
I use Codelobster IDE for AngularJS development - http://www.codelobster.com/angularjs.html