From 6d9dd14b796a1f21d3508836d9a52bfc4b625361 Mon Sep 17 00:00:00 2001 From: Hao-Wu Date: Mon, 1 Apr 2013 19:42:32 +0800 Subject: [PATCH 1/2] resolve the confict between $routeProvider and $routeProvider.when --- README.md | 8 +++++++- angular_javascript.sublime-completions | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62c98ba..dd36531 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ Angular.sublime-package ======================= -Angular sublime package \ No newline at end of file +This is a [Sublime Text] package which includes useful snippets for [AngularJS] framework. + +I test the package on [Sublime Text 2]. + +[Sublime Text]:http://www.sublimetext.com/ +[Sublime Text 2]:http://www.sublimetext.com/2 +[AngularJS]:http://angularjs.org/ \ No newline at end of file diff --git a/angular_javascript.sublime-completions b/angular_javascript.sublime-completions index 77d752c..a65f664 100644 --- a/angular_javascript.sublime-completions +++ b/angular_javascript.sublime-completions @@ -34,6 +34,6 @@ { "trigger": "directive", "contents": "directive('$1', [${3:'$4', }function($4){\n\t${5:// Runs during compile}\n\treturn function(scope, elm, attrs) {\n\t${6:// Runs during render}\n};\n}]);" }, - "$routeProvider" + { "trigger": "$routeProvider", "contents": "\\$routeProvider" } ] } From 3bb0fc7f5cd27042c78495a2a77fcb073a0dec89 Mon Sep 17 00:00:00 2001 From: Hao-Wu Date: Tue, 2 Apr 2013 15:03:48 +0800 Subject: [PATCH 2/2] Fix annotation auto complete issue of angular.module --- angular_javascript.sublime-completions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular_javascript.sublime-completions b/angular_javascript.sublime-completions index a65f664..af734b6 100644 --- a/angular_javascript.sublime-completions +++ b/angular_javascript.sublime-completions @@ -28,7 +28,7 @@ { "trigger": "angular.lowercase", "contents": "angular.lowercase(${1:string});" }, { "trigger": "angular.uppercase", "contents": "angular.uppercase(${1:string});" }, - { "trigger": "angular.module", "contents": "**\n * $1 Module\n *\n * ${2:Description}\n */\nangular.module('$1', [$3]).$0" }, + { "trigger": "angular.module", "contents": "/**\n * $1 Module\n *\n * ${2:Description}\n */\nangular.module('$1', [$3]).$0" }, { "trigger": "angular.noop", "contents": "angular.noop()" },