Versions Compared

Key

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

...

an directive like "datafield" is the basic building block for a webcomponent, see "Create Components" section at: http://angularjs.org (especially see the component.js tab there)

 

So every webcomponent consists out of 3 parts/files:

  1. the webcomponent controller javascript file (does the adding of directive, and likely contains controller javascirpt to-do for example remote calls)
  2. the webcomponent html template (might for example contain the "ng-click" handler to webcomponent javascript controller)
  3. the webcomponent spec (internally called beanInfo, defines all properties and types, see child page)