all files / src/components/search/ search.ts

80% Statements 4/5
100% Branches 0/0
0% Functions 0/1
80% Lines 4/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                             
"use strict";
var osSearch_1 = require('./controllers/osSearch');
exports.OsSearch = osSearch_1.OsSearch;
var osSearch_2 = require('./controllers/osSearch');
angular
    .module('osElements')
    .controller('OsSearch', osSearch_2.OsSearch)
    .directive('osSearch', ['observeOnScope', 'rx', function (observeOnScope, rx) {
        return {
            scope: {
                placeholder: '@',
                disabled: '=?ngDisabled',
                minLength: '=?',
                selectedItem: '=?',
                itemNames: '@osItems',
                searchText: '=?osSearchText',
                searchProviders: '=osSearchProviders',
                searcherHidden: '=?osSearcherHidden'
            },
            controller: 'OsSearch',
            controllerAs: 'osSearch',
            bindToController: true,
            template: require('./templates/search.jade')
        };
    }]);