[Angular] 「基本的なAngularアプリをはじめる」をやってみる(1)
「基本的なAngularアプリをはじめる」をやってみる(1)
[Angular] 「基本的なAngularアプリをはじめる」をやってみる(準備)
昨日、上記の記事のようにチュートリアルのサンプルプロジェクトを生成しました。
サンプルプロジェクトを生成しますと、下図のように、
product-listフォルダー、top-barフォルダーにそれぞれ css、html、ts、の3つにファイルができていることが分かります。
実行結果としてプレビュー画面には、下図のように表示されています。
ちょっとだけ、テストしてみる
今日は、ちょっとだけテストしてみます。
product-list.component.ts
export class ProductListComponent {
products = products;
test_1 = '製品';
product-list.component.ts に test_1 = '製品'; を書き加えてみます。
product-list.component.html
<h2>Products</h2>
<h2>{{ test_1 }}</h2>
product-list.component.html に <h2>{{ test_1 }}</h2> を書き加えます。
はい。test_1 の内容が表示されました!
Author And Source
この問題について([Angular] 「基本的なAngularアプリをはじめる」をやってみる(1)), 我々は、より多くの情報をここで見つけました https://qiita.com/IwashiMorino/items/91da278069abff1f500d著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .