Angular 2 Essential Training | Session 18 The Component Template

Video ready, click here to close ×


Facebook Page :
https://www.facebook.com/lynda.free.courses/
When angular finds a match in the DOM…for a component selector, it will inject…the component markup into that DOM element…that it found a match on.…The markup it will inject comes from…the component metadata template properties.…There are two options, the template, and the templateUrl.…Let’s check these out.…In the app component, we can see…that it is using the template property…and setting it to a string value of some markup.…This is an inline template.…

The markup is declared within the component metadata.…If we switch over to the browser,…and take a look at the run time results…by inspecting the DOM,…we can see that the element named mw-app has the markup…from the metadata inserted inside of it.…Back in the code, we can change that markup…in the template metadata property.…Add some new content, like a p tag,…with a description of what the media tracker app…is all about,…and when the browser reloads,…we can see that our new content is there.…

Using the template metadata property…is an easy way to compose our angular components
https://angular.io/ angular 2 tutorial, beginners, angular 2 شرح, angular 2 tutorial,
angular 2 wiki, angularjs download,
angular ما هو, angular 2 release date,
angularjs شرح, angular 2 book,
what is angular 2,was ist angular 2, learn angular 2, angular 2 tips and tricks, angular 2 advanced,
angular 2 application,
angular 2 app tutorial,
angular 2 bootstrap,
angular 2 basics,
angular 2 bootstrap 4,
angular 2 course,
angular 2 complete course,
angular 2 dependency injection,
angular 2 database,
angular 2 deployment,
angular 2 dashboard,
angular 2 explained,
angular 2 eclipse,
angular 2 from scratch,
angular 2 final release,
angular 2 google,
angular 2 getting started,
angular 2 github,
angular 2 introduction,
angular 2 material design,
angular 2 mosh,
angular 2 mysql,
angular 2 mindspace,
angular 2 mobile…

source

Leave a Reply

Your email address will not be published. Required fields are marked *