Skip to content

Commit

Permalink
Added some TODO notes and code comments to note next steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas-Westby committed Nov 21, 2016
1 parent e33da05 commit 5e9c14e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
24 changes: 3 additions & 21 deletions AngularLab/type-scripts.compiled/type-scripts/typescript-main.js
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...
13 changes: 12 additions & 1 deletion README.md
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`

0 comments on commit 5e9c14e

Please sign in to comment.