oricalvo.wordpress.com
Angular2 – Minimal seed | Ori Calvo
https://oricalvo.wordpress.com/2016/08/18/angular2-minimal-seed
Software Architect and Consultant. Skip to primary content. Angular2 – Minimal seed. August 18, 2016. Angular2 is great. It offers much mature component based architecture than Angular 1. However, simplicity is lost. For example, take a look at Angular2 QuickStart tutorial. For large scale project this is acceptable. For a QuickStart this is no no. Actually, I am quite surprised that Google haven’t yet make this process simpler. Assuming you are using WebStorm you just need to “git clone” the...Thanks fo...
oricalvo.wordpress.com
Ori Calvo | Software Architect and Consultant | Page 2
https://oricalvo.wordpress.com/page/2
Software Architect and Consultant. Skip to primary content. Skip to secondary content. Newer posts →. Object literals in Typescript. July 5, 2016. Consider the following code written in Typescript. The Typescript compiler raises the following error:. Argument of type ‘{ x: number; y: number; z: number; }’ is not assignable to parameter of type ‘Point’. Object literal may only specify known properties, and ‘z’ does not exist in type ‘Point’. Now, consider the following fix. Cache buster for SystemJS.
oricalvo.wordpress.com
Ori Calvo | Ori Calvo
https://oricalvo.wordpress.com/author/oricalvo
Software Architect and Consultant. Skip to primary content. Skip to secondary content. Author Archives: Ori Calvo. Protected: Typescript wrongly assumes browser context. December 27, 2016. This content is password protected. To view it please enter your password below:. Enter your password to view comments. WebStorm – Drag and Drop a reference. October 16, 2016. For example, dropping a JS file into index.html creates the following syntax. And dropping a CSS file creates. Enjoy, …. August 18, 2016. You ne...
oricalvo.wordpress.com
Angular2 – Load component’s template and styles by convention | Ori Calvo
https://oricalvo.wordpress.com/2016/07/19/angular2-load-components-template-and-styles-by-convention
Software Architect and Consultant. Skip to primary content. Angular2 – Load component’s template and styles by convention. July 19, 2016. Below is a common definition of Angular2 component. We use the require. Function to load the component’s template and styles definitions. While the code is straightforward it contains some redundant information. For example, if we decide to rename the clock.ts. File to myClock.ts. Then we probably also rename the HTML and CSS files to myClock.html. Using some monkey pa...