Skip to content

Instantly share code, notes, and snippets.

View sionjlewis's full-sized avatar

Siôn J. Lewis sionjlewis

View GitHub Profile
@sionjlewis
sionjlewis / 13.Root.Web.config.parshall.xml
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!-- Added to implement bundling -->
<dependentAssembly>
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
</dependentAssembly>
@sionjlewis
sionjlewis / HAW10.main.ts
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
//enableProdMode();
platformBrowserDynamic().bootstrapModule(AppModule);
@sionjlewis
sionjlewis / HAW12.Index.cshtml
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section title{
MVC Page
}
<!-- Start Angular Setup -->
<!-- 3. Add the "System.import(...)" statement to the View. -->
@sionjlewis
sionjlewis / HAW07.app.component.css
Last active January 8, 2017 13:02
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
body {
}
@keyframes flashing-text {
0% {color: red;}
25% {color: darkred;}
50% {color: red;}
100% {color: darkred;}
}
@sionjlewis
sionjlewis / HAW08.app.component.ts
Last active January 8, 2017 13:02
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}} World</h1>`,
})
export class AppComponent { name = 'Angular'; }
@sionjlewis
sionjlewis / HAW09.app.module.ts
Last active January 8, 2017 13:01
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
@sionjlewis
sionjlewis / HAW11._Layout.cshtml
Last active January 8, 2017 13:01
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
<!-- Start Angular Setup -->
@sionjlewis
sionjlewis / HAW06.site.css
Last active January 8, 2017 13:01
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
body {
color: #CCCCCC;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
margin: 10px;
}
.title {
color: #999999;
font-size: 16px;
font-weight: bold;
@sionjlewis
sionjlewis / HAW05._index.v2.html
Last active January 8, 2017 13:00
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!DOCTYPE html>
<html>
<head lang="en">
<title>My iTunes Client App Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/site.css" rel="stylesheet" />
<!-- Start Angular Setup -->
<!-- 1. Load libraries -->
@sionjlewis
sionjlewis / HAW04._index.v1.html
Last active January 8, 2017 13:00
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
</body>
</html>