0% found this document useful (0 votes)
2K views

Angular Documentation PDF

This document provides an introduction to learning TypeScript and some tips for getting started: - TypeScript is a superset of JavaScript that adds types and other features like classes. It compiles to pure JavaScript. Types help catch errors and make code cleaner. - The official TypeScript documentation and Udemy courses are recommended starting points for learning the fundamentals of TypeScript. - TypeScript and JavaScript can be mixed - you don't need to use types or TypeScript features everywhere. Angular applications are commonly written in TypeScript though plain JavaScript is possible but harder to find documentation for.

Uploaded by

dawddwad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Angular Documentation PDF

This document provides an introduction to learning TypeScript and some tips for getting started: - TypeScript is a superset of JavaScript that adds types and other features like classes. It compiles to pure JavaScript. Types help catch errors and make code cleaner. - The official TypeScript documentation and Udemy courses are recommended starting points for learning the fundamentals of TypeScript. - TypeScript and JavaScript can be mixed - you don't need to use types or TypeScript features everywhere. Angular applications are commonly written in TypeScript though plain JavaScript is possible but harder to find documentation for.

Uploaded by

dawddwad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

If you encounter issues whilst running ng build –prod –aot with the compiler

complaining about authService and/ or the controls property, make sure to have a look
at the optimizations-final.zip file (attached to last lecture of this module).

There, both issues have been fixed by not referencing authService directly in the header
template and by fetching the controls of the FormArray in the TS class instead of the
template.
MATHS RESEARCH PAPER

A.N. AUTHOR

Abstract. Some deep results are proved here...

1. Introduction

In this paper we prove some important theorems.

2. Gauss's work

In [1] Gauss proved the following very important result.

Theorem 2.1. [1] Some very profound result.

3. Results of Hilbert

In [2] Hilbert considered these questions from a more abstract point of view. He
proved the following result.

Theorem 3.1. [2] Some even more profound result.

In Section 2 a special case of Theorem 3.1 was proved. We can prove an even more
general result.

Theorem 3.2. An extremely profound result.

Proof. As any fool can plainly see, it's true! 

4. LYX

LYX (together with MikTEX) can be downloaded from www.lyx.org. After you install
LYX, the rst thing you need to do is to click Help and read Tutorial. You will not be
able to use LYX without that. Some hints:

• Press Ctrl-R to make and view pdf.


• LYX is based on the principle that What You See Is What You Mean. You
type what you mean, and LYX will take care of typesetting it for you, so that the
output looks nice. A Return grammatically separates paragraphs, and a Space
grammatically separates words.
• The Environment choice box is located on the left end of the toolbar (the choice
box below File Edit View). It indicates in which environment you are currently
writing. Standard is the default environment for text. Use Theorem to write
statement of a theorem, Proof  for proof, etc.
1
2 A.N. AUTHOR

• Use Insert . Label to label your theorems and Insert . Cross Reference to insert
a reference to a particular theorem. The theorems, lemmas, denitions, etc
will be numbered automatically. Use Insert . Citation to refer to an item in the
Bibliography. Use Ctrl-M to enter Maths mode and Space (or Esc) to leave the
formula. Use the arrow keys to navigate inside the formula. Use _ to enter
indices (subscripts) and ^ for superscripts. You can also use ATEX
L commands
in Maths mode (e.g. \sqrt, \sin, \cup, etc).
• A
Use Ctrl-L to enter L TEX code directly in the text if necessary (it will appear
in a red box).

Example of a simple math formula: a2 + b3 = sin x + α; and with Maths Macros
Rb
dened above: F =−
lim
→ Fα ; K = Ker ϕ; a sin x2 dx.
Displayed math formula:

∞ Z b 
X
n γ · ω(y)
Γn x ≥ dy
n=0 a limx→0 f (x)
and a numbered one:

(4.1) a2 + b 2 = c 2
Use Insert-> Cross Reference to insert a reference to it. Equation (4.1) is widely
known.

References

[1] Gauss, C.F., Disquisitiones Arithmeticae, Leipzig, 1801.


[2] Hilbert, D., Über ternäre denite Formen, Acta Math., 17 (1893), 169197.

Department of Mathematics, University of Leicester, Leicester, LE1 7RH, UK


E-mail address : [email protected]
How to learn TypeScript

Throughout this course we’re always using TypeScript and I am convinced that you’ll be able
to learn it ‘on the fly’. But a little head start is never wrong.

What is TypeScript?
TypeScript is a superset to JavaScript, which means, that it compiles into pure JavaScript in
the end. Why do we use it then?
First, it provides ‘strong typing’ (that’s where the name comes from). This means that we can
(and should) assign types to our variables and class members. These types won’t compile to
JavaScript (as JS does not know types) but we will get compilation errors if we assign wrong
types or make any other type-related errors. This is a HUGE help in the daily development
work and should not be underestimated!
Second, TypeScript introduces some nice features, JS does not have out of the box (at least
in the ES5 specification). This includes classes (‘class’ keyword), interfaces, generics and
modules. Being able to use these constructs makes our code cleaner, easier to read and
helps us avoid nasty errors. Especially in combination with the strong typing we are really
able to write high quality code and track down errors quickly.

Where can I learn all the TypeScript fundamentals?
There are a lot of great resources out there which will get you started very quickly.
The official documentation is not too bad to be honest, so you may give it a try:
http://www.typescriptlang.org/Handbook
There’s also a course here on Udemy, though I have not tested it!
https://www.udemy.com/typescript/

Can we mix TypeScript and JavaScript?
Yes, we can. No one is preventing us from not setting types, using ‘var’ instead of ‘let’ or
using pure JavaScript libraries (i.e. libraries which don’t offer a TypeScript version/
implementation).

Can’t I use ‘normal’ JavaScript to write Angular 2 applications?
You can absolutely do that. But currently finding good documentation and examples on
Angular 2 using plain JavaScript is extremely hard. And to be honest: TypeScript will be the
standard ‘language’ to be used when developing Angular 2 applications. So I definitely
recommend using TypeScript

You might also like