
var ahPropTag = function (parameters)
{

    var self = this;
    init();

    function init()
    {
        self.IsNew = parameters.IsNew;
        self.IsJustUpdated = parameters.IsJustUpdated;
        self.IsLeaseIncentives = parameters.IsLeaseIncentives;
    }
};


ko.components.register('ah-property-tag',
    {
        template: '<div class="featured--tag"><span class="property--tag blue--badge" data-bind="visible: IsNew()">New Listing</span><span class="property--tag blue--badge" data-bind="visible: IsJustUpdated()">Just Updated</span><span class="property--tag blue--badge" data-bind="visible: IsLeaseIncentives()">Lease Incentives</span></div>',
        viewModel: ahPropTag
    });

//$.ajax
//    ({
//        url: '/v4/controls/searchResultPropertyTag/searchResultPropertyTag.html',
//        async: false,
//        success: function (templateString)
//        {
//            ko.components.register('ah-property-tag',
//                {
//                    template: templateString,
//                    viewModel: ahPropTag
//                });
//        }
//    });

