Skip to content

Instantly share code, notes, and snippets.

View darielnoel's full-sized avatar

Dariel Noel darielnoel

View GitHub Profile
@darielnoel
darielnoel / em-react-helper.js
Last active August 16, 2018 15:21
em-react-helper.js
//import { merge, template, forIn, isArray, isObject, isString } from 'lodash';
import merge from 'lodash/merge';
import { loadComponentProperties, getHookFunctions, getSsrCmpConfig, decodeSsrCmpConfig, parseSsrCmpConfig } from '../em-components';
import { evaluateObject } from './cmp-config-helper';
function clientPopulateCmpConfig(cmpConfig) {
let { name } = cmpConfig;
return new Promise((resolve, reject) => {
let hooks = getHookFunctions(cmpConfig);
const registryHost = cmpConfig.servicesConfig.config.endPoint;
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>