This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<title>Angular2 Mit WebPack 2</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> | |
<!-- base url --> |
This file contains hidden or 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
/// <reference path="../typings/index.d.ts" /> | |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { AppModule } from './app.module'; | |
const platform = platformBrowserDynamic(); | |
platform.bootstrapModule(AppModule); |
This file contains hidden or 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
import 'core-js/es6/symbol'; | |
import 'core-js/es6/object'; | |
import 'core-js/es6/function'; | |
import 'core-js/es6/parse-int'; | |
import 'core-js/es6/parse-float'; | |
import 'core-js/es6/number'; | |
import 'core-js/es6/math'; | |
import 'core-js/es6/string'; | |
import 'core-js/es6/date'; | |
import 'core-js/es6/array'; |
This file contains hidden or 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
// Angular | |
import '@angular/platform-browser'; | |
import '@angular/platform-browser-dynamic'; | |
import '@angular/core'; | |
import '@angular/common'; | |
import '@angular/forms'; | |
import '@angular/http'; | |
import '@angular/router'; | |
This file contains hidden or 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
{ | |
"scripts": { | |
"start": "webpack-dev-server --inline --progress --port 8080" | |
}, | |
"dependencies": { | |
"@angular/common": "~2.2.0", | |
"@angular/compiler": "~2.2.0", | |
... | |
} |
This file contains hidden or 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
public string Searchnames(List<string> namen) | |
{ | |
var result = string.Empty; | |
if (namen?.Count > 0) | |
{ | |
//do somethig | |
} | |
return result; | |
} |
This file contains hidden or 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
public class Person | |
{ | |
public string Name { get; set; } = string.Empty; | |
public string Vorname { get; set; } = string.Empty; | |
public int Alter { get; set; } = 21; | |
public List<string> Spitznamen { get; set; } = new List<string>(); | |
public string Anzeigename => $"{Vorname}, {Name}"; | |
} |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var personNamePropertyName = nameof(Person.Name); | |
Console.WriteLine($"Der Name des Properties ist: {personNamePropertyName}"); | |
} | |
} | |
public class Person |
This file contains hidden or 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
for (int i = 0; i < 10; i++) | |
{ | |
Console.WriteLine($"Der Aktuelle Index: {i}"); | |
} |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "commonjs", | |
"moduleResolution": "node", | |
"sourceMap": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"removeComments": false, | |
"noImplicitAny": false, |