Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlaqp/angular-snippets
A collection useful snippets based on the way I usually develop my apps
https://github.com/orlaqp/angular-snippets
Last synced: 3 months ago
JSON representation
A collection useful snippets based on the way I usually develop my apps
- Host: GitHub
- URL: https://github.com/orlaqp/angular-snippets
- Owner: orlaqp
- License: apache-2.0
- Created: 2014-09-23T16:15:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-30T14:04:46.000Z (over 9 years ago)
- Last Synced: 2024-10-11T06:44:03.130Z (3 months ago)
- Language: CoffeeScript
- Size: 300 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Angular Snippets
================If you are half the lazy I am and you do not like to waste time typing the same boilerplate code over and over you are going to find this package useful. This is a collection of common snippets based on the way I usually develop my apps. The following snippets are available:
### Controllers
* _cc -> Collection (Controller that deal with list operations)
* _ce -> Entity (Controller that deals with single entity operations)### Factories
* _fc -> Collection (Factory dedicated to manage item collections)
* _fe -> Entity (Factory dedicated to manage single entity operations, ex: changePrice, save, etc)### Filters
* _f -> Filter definition
### Directives
* _d -> Directive definition
### Functions
* _pf -> Private method definition
* _proto -> Private prototype method definition
* _protoo -> Prototype object definition
* _pubf -> Public function definition
* _sm -> Scope method### Objects
* _prop -> Object.defineProperty default definition
### Tests (Jasmine)
* _utc -> Unit Test for a Controller
* _utf -> Unit Test for a Factory
* _desc -> Describe stub
* _be -> Before Each stub
* _it -> It stub
* _sp -> spyOn stub
* _spresolve -> jasmine spy with resolved promise
* _spreject -> jasmine spy with rejected promise### HTML (Bootstrap 3)
* _vc -> Container
* _vdd -> Dropdown
* _vs -> Section
* _vtb -> Textbox