npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@phoenix-plugin-registry/brackets-angular-snippets

v0.1.2

Published

A collection of AngularJS snippets for Brackets.

Downloads

3

Readme

Angular Snippets for Brackets

A collection of Angular snippets for Brackets editor.

Install

Git Clone

  1. Under main menu select Help > Show Extensions Folder
  2. Git clone this repository inside the folder user.

Extension Manager

  1. Under main menu select File > Extension Manager...
  2. Search for "Angular snippets"
  3. Click "Install"

How to use

  1. Enable Angular Snippets Under main menu select Edit > Enable Angular Snippets or open the Preferences File and add "angular-snippets.enabled": true.
  2. Enter a snippet and hit the Tab key.

Snippets list

  • ngmodule =>
angular.module('{name}', [])
  • ngconfig =>
config([function () {

}])
  • ngconfig[$routeProvider]
config(['$routeProvider', function ($routeProvider) {
	$routeProvider.when('/{route}', {
		templateUrl: '{name}.html',
		controller: '{Nane}'
	}).otherwise({ redirectTo: '/{route}' });
}])
  • ngwhen
when('/{route}', {
	templateUrl: '{name}.html',
	controller: '{Name}'
})
  • ngotherwise
otherwise({ redirectTo: '/{route}' })
  • ngrun
run([function () {

}])
  • ngcontroller =>
controller('{Name}', ['$scope', function ($scope) {

}])
  • ngservice =>
service('{name}', [function () {

}])
  • ngfactory =>
factory('{name}', [function () {
	return {

	};
}])
  • ngdirective =>
directive('{name}', [function () {
	return {
		restrict: '{A}',
		link: function (scope, element, attrs) {

		}
	};
}])

Directives available options

Directives can be customized at will. Here is a list of all the available options:

  • scope
  • template
  • templateUrl
  • transclude

NOTE: Options are sperated by commas (,) without spaces.

For example:

  • ngdirective[template] will create snippet:
directive('directive-name', [function () {
	return {
		restrict: '{A}',
		template: '',
		link: function (scope, element, attrs) {

		}
	};
}]).
  • ngdirective[scope,template,transclude] will create snippet:
directive('directive-name', [function () {
	return {
		restrict: '{A}',
        scope: {},
		template: '',
        transclude: true,
		link: function (scope, element, attrs) {

		}
	};
}])

Snippets combinations

You can combine snippets together like this:

ngmodule.ngconfig[$routeProvider].ngcontroller.ngdirective[scope,template].ngfactory will create snippet:

angular.module('{name}', []).controller('{Name}', ['$scope', function ($scope) {

}]).directive('{name}', [function () {
	return {
		restrict: '{A}',
		scope: {},
		template: '',
		link: function (scope, element, attrs) {

		}
	};
}]).factory('{name}', [function () {
	return {

	};
}]);