Added .component syntax in ng-xos-lib
Change-Id: Icc6ff26cff1369038cc9684612f742af0a78c799
diff --git a/src/ui_components/smartComponents/smartTable/smartTable.component.js b/src/ui_components/smartComponents/smartTable/smartTable.component.js
index 622952f..1fbc9d0 100644
--- a/src/ui_components/smartComponents/smartTable/smartTable.component.js
+++ b/src/ui_components/smartComponents/smartTable/smartTable.component.js
@@ -78,10 +78,9 @@
</example>
*/
- .directive('xosSmartTable', function(){
- return {
+ .component('xosSmartTable', {
restrict: 'E',
- scope: {
+ bindings: {
config: '='
},
template: `
@@ -121,7 +120,7 @@
bindToController: true,
controllerAs: 'vm',
controller: function($injector, LabelFormatter, _, XosFormHelpers){
-
+
// TODO
// - Validate the config (what if resource does not exist?)
@@ -264,6 +263,5 @@
getData();
}
- };
});
})();
\ No newline at end of file