-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some TODO notes and code comments to note next steps.
- Loading branch information
1 parent
e33da05
commit 5e9c14e
Showing
2 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
24 changes: 3 additions & 21 deletions
24
AngularLab/type-scripts.compiled/type-scripts/typescript-main.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
// https://github.com/angular/universal/blob/master/examples/playground/src/server.ts | ||
"use strict"; | ||
require("../universal/polyfills/polyfills.node"); | ||
var core_1 = require('@angular/core'); | ||
core_1.enableProdMode(); | ||
var documentHtml = "\n<!doctype>\n <html lang=\"en\">\n <head>\n <title>Angular 2 Universal Starter</title>\n <meta charset=\"UTF-8\">\n <meta name=\"description\" content=\"Angular 2 Universal\">\n <meta name=\"keywords\" content=\"Angular 2, Universal\">\n <meta name=\"author\" content=\"PatrickJS\">\n <link rel=\"icon\" href=\"data:;base64,iVBORw0KGgo=\">\n <base href=\"/\">\n <body>\n <app>\n Loading...\n </app>\n <another-component></another-component>\n <script src=\"dist/public/browser-bundle.js\"></script>\n </body>\n </html>\n"; | ||
var arr = new Array(3).fill(null); | ||
function createApp(num) { | ||
//return main(documentHtml, {id: num, time: true}); | ||
} | ||
/* | ||
var promises = arr.reduce((memo, wat, num) => { | ||
return memo.then(() => { | ||
return createApp(num).then(() => { | ||
}); | ||
}); | ||
}, Promise.resolve()); | ||
promises | ||
.then(html => { | ||
return html; | ||
}); | ||
*/ | ||
// This is just a sample function that is being called by main.js via browserify.js | ||
// (both in the scripts folder). | ||
function calculateSomething(num1, num2) { | ||
return num1 + num2; | ||
} | ||
exports.calculateSomething = calculateSomething; | ||
//TODO: Call bootstrap-server to render some markup... |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
This repository is being used to experiment with Angular 2 (e.g., server side rendering with Edge.js in ASP.NET MVC). | ||
|
||
![Hello World](images/hello.png?raw=true "Hello World") | ||
![Hello World](images/hello.png?raw=true "Hello World") | ||
|
||
# Getting Started | ||
|
||
This is still being used for testing and many things may or may not be broken. | ||
That being said, here's how to get running (last time I checked). | ||
|
||
Change the directory to "AngularLab". | ||
|
||
Run `npm i`. | ||
|
||
Run `grunt` |