Skip to content

Instantly share code, notes, and snippets.

app.service('myService', ['$http', '$rootScope', function ($http, $rootScope) {
// data private access
var inData = {
cpt: 0,
mytext: 'hello who ?',
extData: undefined
};
var loadData = function () {
console.log("loadData");
var montext = "test";
var data = {
get text() { return montext; },
set text(val) { montext = val; }
};
public class App implements FizzBuzzInterface {
private static final String result = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz\n";
@Override
public String call() {
return result;
}
}
<!--
* Html5 LocalFileSystem polymer webcomponent
*
* AOUT 2010 - MAI 2014 | Stephane Labbe
* Released under the MIT license
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt
-->
<!doctype html>
<html class="no-js">
<!--
* Html5 LocalFileSystem polymer webcomponent
*
* AOUT 2010 - MAI 2014 | Stephane Labbe
* Released under the MIT license
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt
-->
<!doctype html>
<html class="no-js">
/*!
* Html5 LocalFileSystem polymer webcomponent
*
* © AOÛT 2010 - MAI 2014 | Stéphane Labbé
* Released under the MIT license
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt
*/
'use strict';
<template>
<style>
/* styles for the custom element itself - lowest specificity */
:host { display: block; }
</style>
<template if="{{ systemOk === false }}">
<div class="alert alert-danger">
Your browser don't support FileSystem api. <a href="https://www.google.com/intl/fr_fr/chrome/browser/">Please, download chrome</a><br/>
(function() {
// Start polymer
Polymer('polymer-filesystem', {
created: function() {
console.log("created");
// bind function 'callBackRefreshList' and 'callBackFsmChangeState' with 'this' current context
this.fsm = new fileSystemManager(this.callBackFsmChangeState.bind(this));
this.fsm.setCallBackAfterLoad(this.callBackRefreshList.bind(this));
console.log("fin created");
<link rel="import" href="elements/filesystem.html">
<polymer-filesystem></polymer-filesystem>