Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norjs/ui
Common NorJS frontend components
https://github.com/norjs/ui
Last synced: 25 days ago
JSON representation
Common NorJS frontend components
- Host: GitHub
- URL: https://github.com/norjs/ui
- Owner: norjs
- License: mit
- Created: 2019-07-21T06:29:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T14:16:16.000Z (over 2 years ago)
- Last Synced: 2024-11-15T08:13:30.339Z (about 1 month ago)
- Language: JavaScript
- Size: 440 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `@norjs/ui`
Common NorJS frontend components.
### WebStorm and Typing in JSDoc
@FIXME: This should be an article at norjs.com
#### Enable ES6 in WebStorm
Change to use *EcmaScript 6* at *Webstorm* -> *Preferences* -> *Languages & Frameworks* -> *JavaScript*.
#### Install 3rd Party typing information
You may 3rd party libraries from *Webstorm* -> *Preferences* -> *Languages & Frameworks* -> *JavaScript* -> *Libraries*.
You should have *Node.js Core* and *HTML* enabled.
We use type names from [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) for AngularJS, UI Router,
etc. You should clone this repository on your local system.You can install these .d-files to your WebStorm so it can also understand them.
We recommend to install only specific versions:
* types/angular/index.d.ts
* types/angular-ui-router/index.d.ts
* types/angular-translate/index.d.ts
* types/angular-sanitize/index.d.ts
* types/angular/jqlite.d.ts
* types/lodash/index.d.ts
* types/moment-timezone/index.d.ts
* types/uuidv4/index.d.tsYou may install these libraries from *Webstorm* -> *Preferences* -> *Languages & Frameworks* -> *JavaScript* -> *Libraries*.
#### Typing Quick List
| Injectable Name | Type Name |
| ----------------------------- | ------------------------------- |
| `$injector` | `angular.auto.IInjectorService` |
| `$element` | `JQLite` |
| `$q` | `angular.IQService` |
| `$attrs` | `angular.IAttributes` |
| `$scope` | `angular.IScope` |
| `$compile` | `angular.ICompileService` |
| `$timeout` | `angular.ITimeoutService` |
| `$document` | `angular.IDocumentService` |
| `$rootScope` | `angular.IRootScopeService` |
| `$interval` | `angular.IIntervalService` |
| `$http` | `angular.IHttpService` |
| `$state` | `angular.ui.IState` |
| AngularJS's component options | `angular.IComponentOptions` |
| form's controller | `angular.IFormController` |
| ng-model's controller | `angular.INgModelController` |