image block
1015 Views 146 Comments
Hi guys! I missed you!
We had a little pause, but later I promise to explain why was that. And today we are going to start one new chapter, which has a difference from previous ones. Today's theme is Angular.
Angular - its application platform for the creation of front-end web applications. In this post, we will review Angular 2 (or to be clear Angular 5), and I guess you got a reasonable question, why exactly Angular 2? The main point, that on nowadays "Angular 2" is most modern open-source front-end web application platform, which developed by Google company and written in TypeScript programming language.
I know that if you will start the learning of this, it will be a bit hard if you did not have a deal with the similar platform before, but I'll do my best to make this post the most useful and clear for you. Let's move on :)


The installation process of Angular is very easy and require a few simple steps.
WARNING : all steps below, were done on Linux Red Hat 7.2 system.
JavaScript, for installation their packages, is using the personal type of package manager, named "NPM". To install it on your system you can use known for us tool "yum".
yum install -y npm
And via this tool, we can install our Angular platform.
np install -g angular-cli
Great! All what we need is installed, and we can start the creation of our project.

First application

Creation of project on Angular is pretty much easy like and installation. Just what we need to do, run command
ng new project where "project" is the name of our application. It can take a few minutes, to download all of dependencies. And after we can run it
cd ./project
ng serve

Besides, we can launch the application on needed for us host and port, because by default it running on localhost and port 4200, and if you will run this application on the destination server, you will not able to get on UI, because it will work only local.
ng serve --host --port 80
Also, want to make the accent on additional downloading dependencies, if you will receive some issues during the launch. You can do this via this command npm install

Structure and workflow

When you create the project, will appear the folder with three folders and a lot of files. We will not stop on each of them, but review general structure and files, which we will use.
The folder which we will use most, is "src", exactly on this folder stored files of our project. Folder "e2e", is using for end-to-end tests and "node_modules" is stored all angular modules. So, let's detailed about "src".
This folder has also personal structure. The first folder named "app" is storing inside, your written modules and components. Folder "assets", will store your future static data, and last one environments folder, storing information about the environment which you use. By default is using "prod" environment.
And files on root "src" folder, are having a big role in the project because storing main configuration and templates of it. Later, we will review all of them.
- e2e
- - app.e2e-spec.ts
- - app.po.ts
- - tsconfig.json

- node_modules
- - ...

- src
- - app
- - assets
- - environments
- - index.html
- - favicon.ico
- - main.ts
- - prolyfills.ts
- - test.ts
- - tsconfig.json
Due to this information, we can create the workflow of the running process of Angular.
The Angular platform is running "main.ts" file, which one is defining the environment and running main application module, described on "app.component.ts". And from to this information inside components file, bootstrap is loading other file and our components.


If we have a look at our main HTML file, we will see that there no HTML or CSS text. Angular only calling component which describing all your data. There is the main point why people using it and why it builds correct dynamic site.
So, we got that the Angular gives possibility to create single page application which one consists of components.
Components are the most basic building block of an UI in an Angular application. In the default case, it stored on "app.component.ts" file, but late we will discuss how to create new ones. So, let's detailed review the part of the component.
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
export class AppComponent {
  title = 'hello! ';
Let's go review them, one by one.
@Component - its decorator, exactly this field is showing, that this object is a component, but not simply JavaScript class.
selector - field which is defining name of our component (it should be uniqe for all project)
templateUrl - path to HTML file with Hypertext data (also can be template, where can be stored not path, but Hypertext data directly).
styleUrls - path to CSS file where stored style data (the same like with template, can use style and paste style info on .ts file).
And later, we define this class AppComponent and inside we will describe all our variable, which will use on our component.
These data we are showing in the .html file. For example, to show variable "title", we should paste something like this :
The best way to create your own component is run :
ng generate component component_name
It will create folder with skeleton data for new component.
If you want to create it by manually you should register it on "app.module.ts" file.
Also, we need to know, that exist few types of using the selector of our component :
  • Simple selector :
    component.ts file
      selector: 'app-root',
    html file
  • Atribute type of selector :
    component.ts file
      selector: '[app-root]',
    html file
    <div app-server></div>
  • Selector of class type :
    component.ts file
      selector: '.app-root',
    html file
    <div class="app-server"></div>
Right now you just need to keep in mind this information, because maybe you will found them on some examples, so should understanding what is this. A detailed method of applying them will follow.


The last thing what I want to review on introduction post regarding Angular is variables.
TypeScript is supporting a lot of types. Maybe you will not use all of them and I will not stop on each but review the main ones.
P.S. Detailed information about types you can find on official site of TypeScript
  • Boolean - basic True/False type data
    online: boolean = false;
  • Number - can be simple number or float number
    amount: number = 0;
  • String - textual data
    name: string = 'name1';
  • Array - array numberic vaues data
    list: number[] = [1, 2, 3];
  • Tuple - array different vaues data (just remind, that first should be string values and after numbers)
    list: = ["hello", 10];

RIght now that's all. In next post, we will start from communication our HTML text with Angular, using functions and will write the simple dynamic site. So, I hope this post was also useful for you and you will back on next one ;)
Thank you for your attention!
- Kostia


  1. new viagra december 2017 <a href="">headache after viagra</a> viagra savings card

  2. celebrities viagra <a href="">mexican viagra pills</a> is viagra super active safe

  3. is it ok to take viagra with predisone <a href="">cheap viagra 200</a> viagra substitute over counter

  4. price to buy viagra <a href="">what is viagra good for</a> viagra bestellen

  5. marley viagra <a href="">what does viagra do to a woman</a> safe online viagra

  6. buy viagra online no prescription <a href="">online pharmacy viagra no prescription</a> online pharmacy in the us that write prescriptions for viagra

  7. viagra before and after pinus <a href="">symptoms of viagra</a> viagra dose for ed

  8. is viagra prescription? <a href="">how can i get viagra without a prescription</a> generic viagra without the prescription

  9. buying viagra online <a href="">real viagra in mexico</a> 200 mg of viagra

  10. do u need a prescription for viagra <a href="">is viagra a prescription</a> generic viagra without prescription

  11. viagra or l-arginine <a href="">viagra keep you awake</a> aruba pharmacies viagra

  12. is viagra a prescription drug <a href="">when will viagra be available without a prescription</a> do i need a prescription for viagra

  13. viagra trial sample <a href="">viagra cost with insurance</a> no se me para ni con viagra

  14. buy viagra without prescription <a href="">viagra canada no prescription</a> non prescription viagra online

  15. how to get a viagra prescription from your doctor <a href="">how to get a viagra prescription online</a> is viagra otc or prescription

  16. best price 100mg generic viagra <a href="">can i take viagra to uae</a> viagra natural para hombres casero

  17. can i get a prescription for viagra online <a href="">viagra no doctor prescription</a> buy viagra online without prescriptions

  18. is it okay to take viagra the night before surgery <a href="">buy viagra online paypal</a> viagra free trial

  19. sildenafil dose for bph <a href="">sildenafil dosage 40 mg</a> sildenafil citrate tablets 100mg online

  20. what happens if you take too much sildenafil <a href="">sildenafil actavis 100 mg preis</a> generic sildenafil dose compared to viagra

  21. sildenafil citrate onset peak duration <a href="">sildenafil citrate overnight to colorado</a> sildenafil online shop

  22. sildenafil citrate 100mg lowest price teva <a href="">sildenafil headache</a> sildenafil nombre comercial

  23. wiki sildenafil <a href="">precio de sildenafil en farmacias similares</a> sildenafil injection

  24. sildenafil 25 mg precio <a href="">sildenafil troches side effects</a> medicines contraindicated with sildenafil 20 mg

  25. viagra helps lose weight <a href="">viagra and wife</a> erectile dysfunction medicines viagra cialis

  26. viagra femenino <a href="">womens viagra cream</a> viagra similar

  27. sildenafil dosage forms <a href="">taking sildenafil for the first time</a> sildenafil colombia precio

  28. cost of sildenafil <a href="">sildenafil 20 mg for ed dosage</a> sildenafil pills no prescription

  29. how to make your own viagra <a href="">200 milligrams of viagra</a> best price viagra 100mg

  30. too much viagra men <a href="">testosterone viagra</a> viagra without a doctor prescription canada

  31. sildenafil generic cvs <a href="">sildenafil citrate from india</a> extenze extended release male enhancement supplement reviews sildenafil

  32. how many mg of sildenafil is best <a href="">low cost sildenafil usa</a> revatio vs sildenafil

  33. does viagra cause vasodilation <a href="">what works better than viagra and cialis</a> taking a lot viagra

  34. him viagra <a href="">viagra pill color</a> does generic viagra work?

  35. viagra weight loss <a href="">how to take sublingual viagra</a> how long for viagra to kick in

  36. viagra compared to cialis <a href="">get viagra prescribed online</a> viagra after orgasm do you stay hard

  37. enhanced vegtal viagra <a href="">lemonaid viagra</a> best way to get viagra in nyc reddit

  38. does an errection with cialis feel different <a href="">cialis pills price</a> compare and contrast viagra and cialis

  39. fucking on cialis <a href="">cialis requiere receta</a> cialis $200

  40. cialis generic in usa <a href="">viagra cialis levitra comparison</a> viagra or cialis or levitra

  41. cialis cartoons <a href="">what is cialis</a> is cialis controlled

  42. generic cialis fda approved <a href="">canadian pharmacies selling cialis</a> is tadalafil 36 hour like cialis

  43. safest place to purchase generic cialis <a href="">cialis 20 mg dosis recomendada</a> does cialis increase testosterone levels

  44. cialis working show <a href="">buying cialis online usa</a> switching from tamsulosin to cialis

  45. cialis 5 mg price <a href="">how much is cialis without insurance</a> is cialis prescribed for women

  46. cialis patent expiring <a href="">cialis overnight delivery online</a> how to cut cialis

  47. can cialis be taken with viagra <a href="">cost of cialis in uk</a> viagra dosage compared to cialis

  48. 20 mg cialis best price <a href="">generic cialis india</a> cialis is awesome

  49. cialis cost cvs <a href="">cialis 100 mg</a> cialis canada cost

  50. cialis patent expiration 2020 <a href="">cialis online reviews</a> hcpcs for cialis

  51. cbd oil for cats with kidney disease <a href="">coastal cbd oil</a> cbd oil bottle

  52. lori's natural foods cbd oil <a href="">honest paws cbd oil reviews</a> cbd oil wesley chapel

  53. cbd oil fertility <a href="">cbd oil for pets</a> cbd oil and inflammation

  54. nuleaf cbd oil cannabidiol for pain <a href="">cbd oil user manual</a> cbd oil daphne

  55. where to buy cbd oil in ny <a href="">cbd oil effects on body</a> what is the cost of cbd oil

  56. cbd oil made in hawaii <a href="">fibromyalgia cbd oil</a> orginal cbd oil 4% cbd

  57. does cbd oil really work for pain <a href="">best cbd oil for knee pain</a> cbd oil for pain nc

  58. hemp oil or cbd for pain <a href="">cbd oil for painandprice</a> cbd oil for pain

  59. cbd oil in michigan <a href="">cbd oil for hair</a> cheapest cbd oil

  60. medix cbd oil review <a href="">native pet cbd oil</a> manitopa cbd hemp oil

  61. cbd oil drop <a href="">will cbd oil show on a drug test</a> cbd oil for pain samples

  62. cbd oil merchant processing <a href="">full spectrum cbd oil vs isolate</a> full spectrum cbd oil softgels

  63. cbd oil and eliquis <a href="">what is cbd oil used for</a> cbd oil dab

  64. whole plant cbd oil for sale <a href="">best cbd oil of 2019</a> how to keep cbd vape oil from turning brown

  65. what are the benefits od cbd oil printable list <a href="">cbd pure hemp oil coupon</a> cbd 2 oil for pain

  66. cbd oil how to use <a href="">where to purchase cbd oil in texas</a> luza cbd oil

  67. side effects of cbd oil in humans <a href="">does cbd oil interact with dexilant</a> cbd oil for bigger boobs

  68. cbd oil and zoloft <a href="">cbd oil nebraska</a> difference between cbd oil and tincture

  69. buy cbd oil wisconsin <a href="">does cbd oil interact with any medications</a> cbd oil selling laws in the us

  70. cbd oil for concentration <a href="">cbd oil bottle cost</a> how much thc is in cbd oil

  71. how long does cbd oil high last <a href="">is cbd oil legal in indiana 2018</a> pure labs cbd oil

  72. side effects from cbd oil <a href="">low thc cbd oil</a> is it legal to buy cbd oil

  73. cbd oil in kansas <a href="">cbd oil retail stores</a> lily hill cbd oil

  74. does cbd oil help you lose weight <a href="">nuleaf cbd oil dosage</a> cbd oil 100% pure

  75. cbd oil color <a href="">cbd oil driving</a> cbd oil effects on apetite

  76. cbd oil rick simpson oil <a href="">hemp seed oil vs cbd oil</a> cbd oil in drinks

  77. cbd oil drug test swab <a href="">cbd oil negative effects</a> ben greenfield cbd oil

  78. what is cbd oil in beauty products <a href="">ben greenfield cbd oil</a> 250 mg cbd oil dosage

  79. cbd oil indiana stores <a href="">ctfo cbd oil rank in the nation</a> what can cbd oil help

  80. cbd oil springfield missouri <a href="">cbd oil for copd</a> does cbd oil help you sleep

  81. real cbd sleep oil <a href="">cbd oil tolerance</a> cbd oil for prostate cancer

  82. cbd face oil <a href="">cbd hemp oil gnc</a> walmart santee cbd oil price

  83. cbd oil extraction process <a href="">natures gold cbd oil</a> plus cbd oil coupon code

  84. what does cbd oil smell like <a href="">can i drink cbd oil</a> cbd flower vs oil

  85. cbd oil how to use spray <a href="">can pure cbd oil interact with losartan</a> how to inject cbd oil into gummies

  86. is cbd oil good for memory <a href="">cbd oil benefits research</a> benefits of cbd hemp oil

  87. internet <a href="">you could try here</a> sneak a peek at this website

  88. Get More Information <a href="">his comment is here</a> read more

  89. click resources <a href="">Bonuses</a> have a peek here

  90. read <a href="">my latest blog post</a> see this website

  91. look at this <a href="">read this article</a> navigate to these guys

  92. blog link <a href="">look here</a> dig this

  93. how much is yours worth? <a href="">Continue</a> you could try here

  94. the original source <a href="">he said</a> related site

  95. click here for more <a href="">click now</a> find out more

  96. from this source <a href="">Clicking Here</a> he said

  97. Look At This <a href="">find out this here</a> get more information

  98. important link <a href="">visit the website</a> Extra resources

  99. click to read <a href="">this site</a> he said

  100. hop over to this site <a href="">his response</a> look at this site

  101. click this <a href="">Website</a> you could try here

  102. Recommended Reading <a href="">discover this</a> view it

  103. click <a href="">find out more</a> basics

  104. i was reading this <a href="">our site</a> go to this website

  105. imp source <a href="">Continue Reading</a> websites

  106. browse around this web-site <a href="">here.</a> visit the site

  107. click this link <a href="">try here</a> more helpful hints

  108. Check Out Your URL <a href="">view it now</a> this content

  109. this article <a href="">the original source</a> you can look here

  110. click for info <a href="">click here.</a> on Bing

  111. Get the facts <a href="">find out this here</a> other

  112. redirected here <a href="">helpful hints</a> click to read

  113. experienced <a href="">you can try this out</a> Look At This

  114. news <a href="">visit this web-site</a> full report

  115. these details <a href="">he said</a> the full details

  116. click this link now <a href="">made a post</a> why not find out more

  117. Discover More Here <a href="">this contact form</a> article

  118. do you agree <a href="">click here.</a> go to my site

  119. other <a href="">check out this site</a> resource

  120. try this web-site <a href="">helpful site</a> what is it worth

  121. cbd oil and lupus <a href="">how much cbd oil for dog with arthritis</a> can cbd oil help pannus in dogs

  122. viagra over the counter united states <a href="">prix de viagra en pharmacie en france</a> prescription for viagra online

  123. will viagra help climax <a href="">viagra before after</a> taking alfuzosin along with viagra

  124. cbd oil side effects itching <a href="">3000mg cbd oil</a> where to buy cbd oil in fargo nd

  125. viagra demonstration live erection size <a href="">viagra dosing</a> canada viagra generic

  126. does viagra have an expiration date <a href="">why doesn t viagra work</a> does cigna cover viagra

  127. why does cbd oil make my brain fog gobaway <a href="">cbd oil drops for dogs from lazarus</a> cbd oil for dogs purpose

  128. cbd oil for hair conditioning <a href="">cbd oil education</a> is tincture the same as cbd oil

  129. buy cbd tincture oil <a href="">does my doctor need to prescibe cbd hemp oil</a> difference between cbd oil and tincture

  130. cbd oil federally legal <a href="">cbd oil utah</a> can cbd oil be put in ear

  131. viagra overnight delivery usa <a href="">viagra online sales</a> how do i know if i need viagra

  132. viagra 100mg genericvigaria <a href="">can you take viagra with l arginine</a> viagra for high blood pressure

  133. who created viagra <a href="">viagra and xarelto interactions</a> viagra discount coupon cvs

  134. charlettes web cbd oil <a href="">gen rx cbd oil</a> cbd oil dosage recommendations for insomnia

  135. viagra and thyroid medication <a href="">viagra what to expect</a> is viagra safe for diabetics

  136. what is pure cbd hemp oil <a href="">does the good apple sell cbd oil</a> cbd oil in colorado

  137. viagra vs revatio <a href="">viagra abuse</a> cvs viagra cost

  138. when does the viagra patent expire <a href="">viagra after orgasim do you stay hard</a> how much does the army pay for viagra

  139. cv+ cbd oil products <a href="">cbd oil dosage for stroke</a> cbd oil near 41042

  140. mn state certified cbd oil dispensaries <a href="">how to add flavor to cbd oil</a> is cbd oil leagal

  141. what's better viagra or cialis <a href="">best coupon for 50 mg cialis</a> how long does 5mg cialis last

  142. cialis compared to viagra <a href="">cialis daily vs regular cialis</a> otc cialis canada

  143. can you take cialis and levitra together <a href="">patent expiration for cialis</a> cialis pills from canada

  144. cbd oil for athlete's foot <a href="">cbd oil alaska</a> negative side effects of cbd oil

  145. how much is a cialis pill <a href="">5mg cialis</a> cialis multiple orgasms

  146. smart organics cbd oil amazon <a href="">cbd oil oregon city</a> 1500mg cbd oil for sale

  147. Leave a Comment