Skip to content

Instantly share code, notes, and snippets.

View dimlucas's full-sized avatar

Dimitris Loukas dimlucas

View GitHub Profile
@dimlucas
dimlucas / aurelia-blog-main.ts
Created November 18, 2016 08:13
How to enable the aurelia-dialog plugin in an Aurelia TypeScript project
import 'bootstrap';
import {Aurelia} from 'aurelia-framework';
import config from './auth/auth-config';
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-dialog');
@dimlucas
dimlucas / info-dialog.ts
Created November 18, 2016 08:19
View model for a sample aurelia-dialog
import {autoinject} from 'aurelia-framework';
import {DialogController} from 'aurelia-dialog';
import {UserInfo} from '../user-info/user-info';
@autoinject
export class InfoDialog{
constructor(private controller: DialogController){
}
@dimlucas
dimlucas / info-dialog.html
Created November 18, 2016 08:22
View for a sample popup dialog in Aurelia
<template>
<ai-dialog>
<ai-dialog-body>
<div class="text-center">
<div class="row">
<strong>First Name: </strong> ${info.firstName}
</div>
<div class="row">
<strong>Last Name: </strong> ${info.lastName}
</div>
<template>
<div class="col-md-2"></div>
<div class="col-md-8">
<button class="btn btn-primary btn-block" click.trigger="open()">Show Information</button>
</div>
</template>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LooseCoupling.Models
{
public class ToDo
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LooseCoupling.Models;
using LooseCoupling.Services;
namespace LooseCoupling
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LooseCoupling.Models;
using LooseCoupling.Services;
namespace LooseCoupling
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using LooseCoupling.Models;
using Newtonsoft.Json;
namespace LooseCoupling.Services
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LooseCoupling.Services;
using LooseCoupling.Models;
namespace LooseCoupling
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LooseCoupling.Models;
namespace LooseCoupling.Services
{
public interface IToDoService