Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var concat = require('gulp-concat'); | |
var templates = require('gulp-angular-templatecache'); | |
var minifyHTML = require('gulp-minify-html'); | |
// Minify and templateCache your Angular Templates | |
// Add a 'templates' module dependency to your app: | |
// var app = angular.module('appname', [ ... , 'templates']); |
var List = Backbone.Marionette.CollectionView.extend({ | |
itemView: Item, | |
tagName: 'ul' | |
}); | |
var Item = Backbone.Marionette.ItemView.extend({ | |
tagName: 'li', | |
template: function(data) { | |
return '<span rv-text="model.name"></span><p rv-text="model.description"><p>'; | |
}, |
@mixin angular-animate-hide($duration,$property,$easing,$min-val,$max-val){ | |
transition :$duration $property $easing; | |
&.ng-hide-add,&.ng-hide-remove{ | |
display: block !important; | |
#{$property}: $min-val; | |
} | |
&.ng-hide-remove.ng-hide-remove-active{ | |
#{$property}: $max-val; |
In React 0.12, we're making a core change to how React.createClass(...)
and JSX works.
If you're using JSX in the typical way for all (and only) React components, then this transition will be seamless. Otherwise there are some minor breaking changes described below.
The Problem
In React's terminology, there are five core types that are important to distinguish:
React Elements
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
1. Build GraphQL server using `express-graphql` package. | |
2. Configure `schema.js` file. | |
3. Query for data. |
Document your target environment with:
"engines": {
"npm": ">=3.3.12 <4",
"node": ">=5.5.0 <6"
},
Then install this:
"devDependencies": {
interface Task { | |
id: string, | |
name: string, | |
assignee: string, | |
contacts: any[], //for brevity | |
associatedJob: string, | |
submissionDate: string, | |
allocatedTime: number, | |
expectedCompletion: string, | |
invoiceNumber: string, |