<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Typescript on programming mentor</title>
    <link>https://programmingmentor.com/tags/typescript/</link>
    <description>Recent content in Typescript on programming mentor</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 25 Jul 2017 10:54:24 +0200</lastBuildDate>
    
	<atom:link href="https://programmingmentor.com/tags/typescript/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Intro to Angular 4 Forms: Template-Driven vs. Reactive</title>
      <link>https://programmingmentor.com/post/angular-forms/</link>
      <pubDate>Tue, 25 Jul 2017 10:54:24 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/angular-forms/</guid>
      <description>Prerequisuites  Install Node.js. Install angular-cli: npm i -g @angular/cli Generate project: ng new angular-forms  Regular HTML form This is how regular html form looks like:
&amp;lt;form&amp;gt; &amp;lt;label&amp;gt;Name &amp;lt;input type=&amp;#34;text&amp;#34; placeholder=&amp;#34;Name&amp;#34; name=&amp;#34;name&amp;#34;&amp;gt; &amp;lt;/label&amp;gt; &amp;lt;input type=&amp;#34;submit&amp;#34;&amp;gt; &amp;lt;/form&amp;gt; We will create same form with Angular using two approaches:
 template-driven - form including validations is described in HTML template and Angular generates data model from it automatically or allows to bind it to existing model reactive - form model is described in TypeScript source code and it need to be bound to HTML-form  Template-driven form We start with Angular template-driven form:</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop</title>
      <link>https://programmingmentor.com/post/typescript-workshop/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:24 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop/</guid>
      <description>Intro Welcome to the practice-first WorkShop on TypeScript programming language.
For the convenience WorkShop has been split on several steps that should be completed one after another. Also each folder has files that are produced as result of completing instruction for the step.
Source code and instructions for each step located on GitHub: https://github.com/programmingmentor/typescript-workshop
If you want to skip some steps, use source files from previous step.
List of steps  Step 01 - Prepare environment.</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop - Step 1: Prepare environment. Create &#39;Hello World&#39;. Basic configuration and debugging</title>
      <link>https://programmingmentor.com/post/typescript-workshop-01/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:23 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop-01/</guid>
      <description>Intro This is practice-first introduction into TypeScript 2.4 language brought to you by programming mentor. Each step continues on files created as result of previous step.
Step 01 - Prepare environment. Create &amp;lsquo;Hello World&amp;rsquo;. Basic configuration and debugging I. Install prerequisites 1. Install Node.js Navigate to nodejs.org, download and install latest version of Node.JS
2. Install Visual Studio Code Navigate to code.visualstudio.com, download and install latest version of Visual Studio Code</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop - Step 2: Basic Types and OOP</title>
      <link>https://programmingmentor.com/post/typescript-workshop-02/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:22 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop-02/</guid>
      <description>I. Prepare index.html For this step we will create ToDo list application, here is the code for index.html file:
index.html:
&amp;lt;!doctype html&amp;gt; &amp;lt;html lang=&amp;#34;en&amp;#34;&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta charset=&amp;#34;UTF-8&amp;#34;&amp;gt; &amp;lt;title&amp;gt;TypeScript ToDo&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;h1&amp;gt;Ultimate ToDo List&amp;lt;/h1&amp;gt; &amp;lt;h2&amp;gt;Tasks:&amp;lt;/h2&amp;gt; &amp;lt;ul id=&amp;#34;task-list&amp;#34;&amp;gt;&amp;lt;/ul&amp;gt; &amp;lt;h3&amp;gt;New task:&amp;lt;/h3&amp;gt; &amp;lt;form&amp;gt; &amp;lt;label for=&amp;#34;task-priority&amp;#34;&amp;gt;Priority:&amp;lt;/label&amp;gt; &amp;lt;input type=&amp;#34;text&amp;#34; id=&amp;#34;task-priority&amp;#34;&amp;gt; &amp;lt;label for=&amp;#34;task-title&amp;#34;&amp;gt;Title:&amp;lt;/label&amp;gt; &amp;lt;input type=&amp;#34;text&amp;#34; id=&amp;#34;task-title&amp;#34;&amp;gt; &amp;lt;button id=&amp;#34;btn-add&amp;#34;&amp;gt;Add&amp;lt;/button&amp;gt; &amp;lt;/form&amp;gt; &amp;lt;script src=&amp;#34;index.js&amp;#34;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt; II. Create index.ts Let&amp;rsquo;s create code on in index.ts to handle adding tasks to the list and showing them:</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop - Step 3: Using Type Definitions</title>
      <link>https://programmingmentor.com/post/typescript-workshop-03/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:20 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop-03/</guid>
      <description>Let&amp;rsquo;s add jQuery to our project to see how we can use type definitions.
I. Add jQuery to HTML We will use jQuery CDN to
Add this line to index.html just before link to index.js:
from index.html:
... &amp;lt;script src=&amp;#34;http://code.jquery.com/jquery-3.2.1.min.js&amp;#34; integrity=&amp;#34;sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=&amp;#34; crossorigin=&amp;#34;anonymous&amp;#34;&amp;gt;&amp;lt;/script&amp;gt; ... II. Refactor code Let&amp;rsquo;s refactor our code to use jQuery:
index.ts:
class Task { private priority: number; private title: string; constructor(priority: number, title: string) { this.priority = priority; this.</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop - Step 4: Creating Decorator</title>
      <link>https://programmingmentor.com/post/typescript-workshop-04/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:19 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop-04/</guid>
      <description>I. Preparation At this step we will add decorators to our project
From TypeScript documentation:
 A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. Decorators use the form @expression, where expression must evaluate to a function that will be called at runtime with information about the decorated declaration.
 Also please note:
 Decorators are an experimental feature that may change in future releases.</description>
    </item>
    
    <item>
      <title>TypeScript 2 WorkShop - Step 5: Splitting Code into Modules</title>
      <link>https://programmingmentor.com/post/typescript-workshop-05/</link>
      <pubDate>Wed, 12 Jul 2017 10:54:18 +0200</pubDate>
      
      <guid>https://programmingmentor.com/post/typescript-workshop-05/</guid>
      <description>At this step we will continue refactoring our application, we will use TypeScript modules to organise our project and make it maintainable.
One important note about terminology from official TypeScript documentation: &amp;gt; It’s important to note that in TypeScript 1.5, the nomenclature has changed. “Internal modules” are now “namespaces”. “External modules” are now simply “modules”, as to align with ECMAScript 2015’s terminology, (namely that module X { is equivalent to the now-preferred namespace X {).</description>
    </item>
    
  </channel>
</rss>