Versions Compared

Key

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

Servoy NGClient uses a library called AngularJS, which provides all the means for building webcomponents.

Inside Angular AngularJS we have something called directives which basically wraps/fold an blob of html into one new html tag, so:

...

Code Block
titleresult
<div class="xyz"><input type="text" ng-model="model.orderid"></div>

an A 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)

A The component name must follow the angular naming restrictions imposed by angular directives. When using a directive in the html it resolves to the directive name by converting from snake-case to camelCase ,for example when defining a directive with name 'myDir' one must use it in ht html as  'my-dir'   see  'Matching Directives' section of https://docs.angularjs.org/guide/directive.

...