<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Angular._Tutorial_Tour_of_Heroes</id>
	<title>Angular. Tutorial Tour of Heroes - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Angular._Tutorial_Tour_of_Heroes"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Angular._Tutorial_Tour_of_Heroes&amp;action=history"/>
	<updated>2026-08-30T04:49:59Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Angular._Tutorial_Tour_of_Heroes&amp;diff=258408&amp;oldid=prev</id>
		<title>Joan: /* Tutorial: Tour of Heroes */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Angular._Tutorial_Tour_of_Heroes&amp;diff=258408&amp;oldid=prev"/>
		<updated>2019-04-30T15:40:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tutorial: Tour of Heroes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introducció i instal·lació del framework Angular=&lt;br /&gt;
*https://angular.io/&lt;br /&gt;
*https://angular.io/guide/quickstart&lt;br /&gt;
&lt;br /&gt;
'''Step 1'''. Set up the Development Environment &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ npm install -g @angular/cli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Step 2'''. Create a new project &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ng new my-app&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Step 3''': Serve the application&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd my-app&lt;br /&gt;
$ ng serve --open&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The ''ng serve'' command launches the server, watches your files, and rebuilds the app as you make changes to those files.&lt;br /&gt;
&lt;br /&gt;
Using the ''--open'' (or just ''-o'') option will automatically open your browser on ''http://localhost:4200/''.&lt;br /&gt;
&lt;br /&gt;
'''Step 4''': Edit your first Angular component&lt;br /&gt;
&lt;br /&gt;
Editar ''src/app/app.component.ts'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export class AppComponent {&lt;br /&gt;
  title = 'My First Angular App!';&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Project file review. ''src/ folder''=&lt;br /&gt;
Your app lives in the src folder. All Angular components, templates, styles, images, and anything else your app needs go here. Any files outside of this folder are meant to support building your app.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
src&lt;br /&gt;
...app&lt;br /&gt;
......app.component.css&lt;br /&gt;
......app.component.html&lt;br /&gt;
......app.component.spec.ts&lt;br /&gt;
......app.component.ts&lt;br /&gt;
......app.module.ts&lt;br /&gt;
...assets&lt;br /&gt;
......gitkeep&lt;br /&gt;
...environments&lt;br /&gt;
......environment.prod.ts&lt;br /&gt;
......environment.ts&lt;br /&gt;
...browserslist&lt;br /&gt;
...favicon.ico&lt;br /&gt;
...index.html&lt;br /&gt;
...karma.conf.js&lt;br /&gt;
...main.ts&lt;br /&gt;
...polyfills.ts&lt;br /&gt;
...styles.css&lt;br /&gt;
...test.ts&lt;br /&gt;
...tsconfig.app.json&lt;br /&gt;
...tsconfig.spec.json&lt;br /&gt;
...tslint.json&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Veure la funció de cadascun dels fitxers a:&lt;br /&gt;
*https://angular.io/guide/quickstart&lt;br /&gt;
&lt;br /&gt;
=Tutorial: Tour of Heroes=&lt;br /&gt;
*https://angular.io/tutorial&lt;br /&gt;
L'objectiu d'aquest tutorial és seguir pas a pas tots els exemples i assimilar els conceptes: components, serveis, ...&lt;br /&gt;
&lt;br /&gt;
=Feina per l'alumne=&lt;br /&gt;
La tasca principal és que funcioni el tutorial fins al final entenent tots els conceptes.&lt;br /&gt;
&lt;br /&gt;
Un cop funciona, es proposa fer els següents canvis:&lt;br /&gt;
*A part del nom de l'heroi, afegir el camp del cognom, i que tota l'aplicació sigui consistent amb el nom i el cognom: que es pugui editar i guardar tant el nom i el cognom, que surtin concatenats el nom i el cognom, etc.&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, abril 2019&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>