Author: Ari Lerner.
AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:
- Module support
- DOM manipulation
- Animations
- Templating
Author: Ari Lerner.
AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
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.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()| import React, { PropTypes } from 'react' | |
| const Describe = ({ title, children }) => ( | |
| <div> | |
| <h1>{title}</h1> | |
| <ul>{children}</ul> | |
| </div> | |
| ) | |
| Describe.propTypes = { |
| import Reconciler from 'react-reconciler' | |
| import omit from 'lodash/omit' | |
| import capitalize from 'lodash/capitalize' | |
| import { actions as elementActions } from './store/elements' | |
| import * as Elements from './elements' | |
| const roots = new Map() | |
| const emptyObject = {} | |
| const Renderer = Reconciler({ |
| // I have stored the generated Mock URL as Collection Variable | |
| let snapshotURL = pm.variables.get('snapshotURL'), | |
| /* Create the path that was used in actual request. We will send it along with our Mock endpoint */ | |
| path = pm.request.url.path.join('/'); | |
| /* If request contains any query params then pass those as well to mock endpoint */ | |
| if (pm.request.url.query.count()) { | |
| let params = pm.request.url.query.map((q) => { |
| // I have stored the generated Mock URL as Collection Variable | |
| let snapshotURL = pm.variables.get('snapshotURL'), | |
| /* Create the path that was used in actual request. We will send it along with our Mock endpoint */ | |
| path = pm.request.url.path.join('/'); | |
| /* If request contains any query params then pass those as well to mock endpoint */ | |
| if (pm.request.url.query.count()) { | |
| let params = pm.request.url.query.map((q) => { |
| function executeReferencedRequest({ collectionUId, requestUId, requestName, apiKey }, callback) { | |
| var _ = require('lodash'); | |
| let message; | |
| if (!apiKey) { | |
| message = "Pleas generate an API key and add it in your collection level variables" | |
| } | |
| if (!collectionUId) { | |
| message = "Please enter the UId of the collection from which you want to resuse a request or script" |