This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function curriedReadFile(path) { | |
var _done, _error, _result; | |
var callback = function(error, result) { | |
_done = true, | |
_error = error, | |
_result = result; | |
}; | |
fs.readFile(path, function(e, r) { |
ng-conf 2015. Custom Content: Template Insertion in Web Components and Angular by Rachael L Moore and Kara Erickson. Code demo for web component segment of the talk about combining user provided content with pre-defined templates using the Shadow DOM and content insertion points. This is the canonical example.
Forked from Rachael L Moore's Pen Web Component Content Insertion Points.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AddController = (function () { | |
'use strict'; | |
var name = 'AddController'; | |
function init() { | |
console.log('AddController'); | |
} | |
return { | |
name: name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function urlObject(options) { | |
"use strict"; | |
/*global window, document*/ | |
var url_search_arr, | |
option_key, | |
i, | |
urlObj, | |
get_param, | |
key, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body ng-app="app" ng-controller="index"> | |
<svg style="position: absolute; width: 0; height: 0;" width="0" height="0" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<symbol id="icon-calendar" viewBox="0 0 1024 1024"> | |
<title>calendar</title> | |
<path class="path1" d="M320 384h128v128h-128zM512 384h128v128h-128zM704 384h128v128h-128zM128 768h128v128h-128zM320 768h128v128h-128zM512 768h128v128h-128zM320 576h128v128h-128zM512 576h128v128h-128zM704 576h128v128h-128zM128 576h128v128h-128zM832 0v64h-128v-64h-448v64h-128v-64h-128v1024h960v-1024h-128zM896 960h-832v-704h832v704z"></path> | |
</symbol> | |
<symbol id="icon-home2" viewBox="0 0 1024 1024"> | |
<title>home2</title> | |
<path class="path1" d="M512 32l-512 512 96 96 96-96v416h256v-192h128v192h256v-416l96 96 96-96-512-512zM512 448c-35.346 0-64-28.654-64-64s28.654-64 64-64c35.346 0 64 28.654 64 64s-28.654 64-64 64z">< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = function (request, response) { | |
'use strict'; | |
/*var methods = Object.create(null); | |
console.log('methods: %s', methods);*/ | |
console.log(typeof request); | |
response.write('test'); | |
//response.end('test'); |