Matteo Scandolo | 6635143 | 2016-03-24 15:29:52 -0700 | [diff] [blame^] | 1 | /** |
| 2 | * © OpenCORD |
| 3 | * |
| 4 | * Visit http://guide.xosproject.org/devguide/addview/ for more information |
| 5 | * |
| 6 | * Created by teone on 3/24/16. |
| 7 | */ |
| 8 | |
| 9 | (function () { |
| 10 | 'use strict'; |
| 11 | |
| 12 | angular.module('xos.uiComponents.table', []) |
| 13 | .directive('xosTable', function(){ |
| 14 | return { |
| 15 | restrict: 'E', |
| 16 | scope: { |
| 17 | data: '=', |
| 18 | columns: '=' |
| 19 | }, |
| 20 | bindToController: true, |
| 21 | controllerAs: 'vm', |
| 22 | controller: function(){ |
| 23 | console.log(this.data, this.columns); |
| 24 | } |
| 25 | } |
| 26 | }) |
| 27 | })(); |