Hi all,

I hope you are having a good holiday.  I have a question about the basics 
of the 'directive' command.   I've been amusing myself by doing the simple 
examples on the http://angularjs.org home page as simple .html and .js 
files.  When it comes to the 
Components<http://angularjs.org/#create-components>example using tabbed panels, 
it just simple doesn't float for me, no matter 
what I do.  The link to JS Fiddle doesn't help because will include 
angularjs-1.2.1, which doesn't reproduce the 'use case' shown on the Create 
Components <http://angularjs.org/#create-components> example:

   - http://angularjs.org/#create-components
   
When I make these three code snippets as 3 x files: index.html, 
components.js and app.js this is what is displayed on my browser:


>    - Localization<file:///W:/sandbox/aptana/angular/components/index.html>
>    - Pluralization<file:///W:/sandbox/aptana/angular/components/index.html>
>
>  Date: Sunday, April 1, 2012 
> Currency: $123,456.00 
> Number: 98,765.432 
>   no beers 
> 1 beer 
> 2 beers 
> 3 beers 
> 4 beers 
> 5 beers 
> 6 beers
>

Not quite the same as the example demonstrated, or what shows up with 
JsFiddle using angularjs-1.2.1 either.

My first thought is that there's some CSS styling missing.  If so can 
someone comment on a suitable CSS file to 'work' with this example?  The 
example code does not include a CSS so it's just a guess on my part. 

In any case the example is incomplete imho because it doesn't run as a 
standalone with a few HTML files and the angular.min.js as shown on the 
home page.  I don't think anyone checks these examples at AngularJS 
central, because I found a few minor hiccups with the other example too. 
 I'm thinking these examples mush be on github someplace if JsFiddle can 
pick them up.  It would be nice if the raw source is linked to the examples.

It is quite frustrating to be detoured on such a minor point.  I wanted to 
settle down this week and do stuff.  Thanks in advance for wise comments.

Kind regards,

   Will

-- 
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/groups/opt_out.

Reply via email to