Skip to content

Instantly share code, notes, and snippets.

View squadwuschel's full-sized avatar
💭
Working

SquadWuschel squadwuschel

💭
Working
  • Relaxdays
  • Germany
View GitHub Profile
@squadwuschel
squadwuschel / ProxyPService.ts
Last active June 28, 2016 19:45
AngularJs TypeScript Service
module App.Services {
export interface IProxyPService {
addTsEntryAndName(person: ProxyGeneratorDemoPage.Models.Person.Models.IPerson, name: string): ng.IPromise<ProxyGeneratorDemoPage.Models.Person.Models.IAuto>;
loadTsCallById(id: number): ng.IPromise<ProxyGeneratorDemoPage.Models.Person.Models.IPerson>;
loadTsCallByParams(name: string, vorname: string, alter: number): ng.IPromise<ProxyGeneratorDemoPage.Models.Person.Models.IPerson>;
voidTsReturnType(name: string): void;
stringTsReturnType(name: string): ng.IPromise<string>;
integerTsReturnType(age: number): ng.IPromise<number>;
}
@squadwuschel
squadwuschel / exampleComponent.ts
Created June 21, 2016 20:58
Example Angular 1.5 Component in TypeScript
module App.Components {
/*
* Beschreibung ...
*
* Verwendung:
*
* <edit-user-cmp name="ctrl.name" test="ctrl.blubb></edit-user-cmp>
*/
export class EditUserCmp implements ng.IComponentOptions {
@squadwuschel
squadwuschel / meineLiveTemplates.nuspec
Last active May 28, 2016 17:00
Nuspec file to create as Resharper nuget files for Resharper Extensionmanager 2016.1.x
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>AngularJsResharper.Settings</id>
<version>1.9.9</version>
<authors>SquadWuschel</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>My package description.</description>
<dependencies>
<dependency id="Wave" version="[5.0]" />
@squadwuschel
squadwuschel / draggableModal.directive.ts
Last active May 22, 2016 21:01
UI-Bootstrap Draggable Modal TypeScript Directive
module App.Directives {
/*
* Ein Ui Bootstrap Modal draggable/verschiebbar machen
*
* Verwendung:
*
* Einfach in AngularJs registrieren und dann sind alle Modals Draggable.
*
*/
@squadwuschel
squadwuschel / block.xml
Created May 22, 2016 20:58
Blocking TypeScript Compile
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
@squadwuschel
squadwuschel / systemjs.config.js
Last active May 19, 2018 06:26
Angular 2.1.1 SystemJs.Config.js
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
@squadwuschel
squadwuschel / index.html
Last active June 22, 2016 19:09
Angular 2 RC1 index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My ASP.NET Application</title>
@Styles.Render("~/Content/css")
<!-- Polyfill(s) for older browsers like IE -->
<script src="~/Scripts/shim.min.js"></script>
<!-- 1. Load libraries -->
<script src="~/Scripts/zone.js"></script>
@squadwuschel
squadwuschel / app.component.ts
Last active October 31, 2016 12:18
Angular 2.1.1 app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: '<h1 class="well well-sm text-center">Hello World to - {{name}}</h1>'
})
export class AppComponent {
public name : string = "SquadWuschel";
constructor() {
}
@squadwuschel
squadwuschel / boot.ts
Last active February 28, 2017 08:22
Angular 2 RC1 boot.js
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from "./app.module";
platformBrowserDynamic().bootstrapModule(AppModule);
@squadwuschel
squadwuschel / vs.xml
Last active May 22, 2016 20:04
Angular 2 RC1 TypeScript 1.8.x Settings in vsproj
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptJSXEmit>None</TypeScriptJSXEmit>
<TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>
<TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>
<TypeScriptModuleKind>CommonJS</TypeScriptModuleKind>
<TypeScriptRemoveComments>False</TypeScriptRemoveComments>
<TypeScriptOutFile />
<TypeScriptOutDir />
<TypeScriptGeneratesDeclarations>False</TypeScriptGeneratesDeclarations>
<TypeScriptNoEmitOnError>True</TypeScriptNoEmitOnError>