+ All Categories
Home > Documents > Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export...

Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export...

Date post: 10-Mar-2021
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
23
Transcript
Page 1: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 2: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 3: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 4: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 5: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 6: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 7: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

<template> <p>

${title}

<span> (by ${speaker})</span>

</p>

</template>

<require from="./slot" />

<h4>Les 4 fantastiques frameworks</h4>

<slot></slot> <!-- Composant slot -->

export class Slot { title= 'Aurelia'; speaker = 'Alban Dauleu';}

Page 8: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

import {useView} from 'aurelia-framework';

@useView('autre-template.html')export class Slot { title= 'Aurelia'; speaker = 'Alban Dauleu';}

Page 9: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 10: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

<span if.bind="speaker"> (by ${speaker})</span>

<slot repeat.for="slot in slots"></slot>

<template> <h2>Ajouter un Slot</h2> <form> ...

<div class="form-group"> <label for="slot-name">Titre</label> <input id="slot-name" type="text" class="form-control" value.bind="slot.title"/> </div>

<button type="button" class="btn btn-primary" click.trigger="addSlot()" id="add-slot">Ajouter</button> </form></template>

Page 11: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 12: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

<template>

<require from="../slot/slot"></require>

<slot repeat.for="slot of slots" title.bind="slot.title" speaker.bind="slot.speaker"></slot>

</template>

import {bindable} from 'aurelia-framework';

export class Slot { @bindable title; @bindable speaker;}

Page 13: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

<template>

<require from="../slot/slot"></require>

<slot repeat.for="slot of slots" title.one-time="slot.title" speaker.two-way="slot.speaker & throttle:666"></slot>

</template>

Page 14: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 15: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

import {SlotService} from 'backend/slot-service';import {inject} from 'aurelia-framework';

@inject(SlotService)export class Event { title = ‘’; slots = [];

constructor(slotService, title) { this.slotService = slotService; this.title = title; this.slotService.getSlotsByTheme(this.title).then(slots => this.slots = slots); }}

Page 16: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 17: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 18: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 20: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 22: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}
Page 23: Publicis Sapient...import {useView} from 'aurelia-framework'; @useView('autre-template.html') export class Slot {title= 'Aurelia'; speaker = 'Alban Dauleu';}

Rejoignez-nous !

[email protected]

blog.xebia.fr


Recommended