Uhmmm... I'm not sure if I understood you what is confusing you. That 
<display> tag is required to tell angular2 where my component will be 
rendered.

The step 2 example shows this

// HTML

<display></display>



// TS

   1. // TypeScript
   2. import {Component, View, bootstrap} from 'angular2/angular2';
   3. 
   4. @Component({
   5. selector: 'display'
   6. })
   7. @View({
   8. template: `
   9. <p>My name: {{ myName }}</p>
   10. `
   11. })
   12. class DisplayComponent {
   13. myName: string;
   14. 
   15. constructor() {
   16. this.myName = "Alice";
   17. }
   18. }


Basically you are saying : "I want to compile 'My name: {{myName}} to `My 
name : Alice' and render it into the <display> tag (the selector)"

Could you be more specific into what confuses you?


El jueves, 27 de agosto de 2015, 18:35:44 (UTC-3), Martin Dickson escribió:
>
> Thanks for the quick reply.
>
> What confuses me now is that the guide states that show_properties.html 
> contains only a <display> tag.  Is there further boilerplate required to 
> bootstrap angular?
>
>
> On Thursday, August 27, 2015 at 9:08:15 PM UTC+1, Eric Martinez wrote:
>>
>> I don't think the examples in both steps are related at all. Step 1 is 
>> just to set up all what you need and test that you did it correctly. Step 2 
>> shows you how you can handle some features. In short, the index.html you 
>> created in Step1 is not necessary in Step2.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to