This file contains 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
<template> | |
<h1>${heading}</h1> | |
<button type="button" click.delegate="toggleIsChecked()"> | |
<input type="checkbox" checked.bind="isChecked"> ${isChecked} | |
</button> | |
</template> |
This file contains 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
<template> | |
<require from="autocomplete-item"></require> | |
<autocomplete-item> | |
<div slot="slot1"> | |
Kukkuuu | |
</div> | |
</autocomplete-item> | |
</template> |
This file contains 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
<template> | |
<require from="./contact-list"></require> | |
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> | |
<div class="navbar-header"> | |
<a class="navbar-brand" href="#"> | |
<i class="fa fa-user"></i> | |
<span>Contacts MEYOOW</span> | |
<span if.bind="1 < 2">I am dog</span> | |
<span if.bind="1 > 2">I am cat</span> |
This file contains 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
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker | |
.register('./service-worker.js') | |
.then(function() { console.log('Service Worker Registered'); }); | |
} |
This file contains 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
self.addEventListener('install', function(e) { | |
console.log('[ServiceWorker] Install'); | |
e.waitUntil( | |
caches.open(cacheName).then(function(cache) { | |
console.log('[ServiceWorker] Caching app shell'); | |
return cache.addAll(filesToCache); | |
}) | |
); | |
}); |
This file contains 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
self.addEventListener('fetch', function(e) { | |
console.log('[ServiceWorker] Fetch', e.request.url); | |
e.respondWith( | |
caches.match(e.request).then(function(response) { | |
return response || fetch(e.request); | |
}) | |
); | |
}); |
This file contains 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
{ | |
"name": "App", | |
"short_name": "App", | |
"icons": [{ | |
"src": "images/icons/icon-152x152.png", | |
"sizes": "152x152", | |
"type": "image/png" | |
}, { | |
"src": "images/icons/icon-192x192.png", | |
"sizes": "192x192", |
This file contains 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
<template> | |
<require from="./tree"></require> | |
<h1>The two-way binding problem</h1> | |
<tree nodes.two-way="fruits"></tree> | |
<button type="button" click.delegate="changeFruits()">Change fruits</button> | |
<p repeat.for="message of messages">${message}</p> | |
</template> |
This file contains 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
<template> | |
<h1>${message}</h1> | |
</template> |
This file contains 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
[assembly: FunctionsStartup(typeof(MyNamespace.Startup))] | |
namespace MyNamespace | |
{ | |
public class Startup : FunctionsStartup | |
{ | |
public override void Configure(IFunctionsHostBuilder builder) | |
{ | |
builder.Services.AddHttpClient(); | |
builder.Services.AddSingleton((s) => { |
OlderNewer