Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Router confusion:  its looks like $routeProvider maps a URL to a template and a controller.  But I expct URL routing to happen server side,  What does this client side routing do and why?  Is this so you can reuse the same view with different controllers?  If so, how do you reference the controller in the view? Do all the differinf controller instances have to be in different files with the same controller name?

...

Directives are tied to their definition through a regex that does string replacement.

foo-bar  becomes fooBar

data-foo-bar becomes fooBar as well, the data- is really a directive telling the system to make the html html validator compliant (what does this imply?)

x- is a synonym for data-

There are some other special characters whose meaning I dont understand yet  (: _)