       labelKey   ?= "name"
       queryKey    = attrs.macTagAutocompleteQuery  or "q"
       delay       = +attrs.macTagAutocompleteDelay or 800
-
+      useSource   = false
 
       textInput =
         angular.element(element[0].getElementsByClassName "mac-autocomplete")

- mac-menu

@param {String} mac-tag-autocomplete-url          Url to fetch autocomplete dropdown list data
@param {String} mac-tag-autocomplete-value        The value to be sent back upon selection (default "id")
@param {String} mac-tag-autocomplete-label        The label to display to the users (default "name")
@param {Expression} mac-tag-autocomplete-model    Model for autocomplete

      if attrs.macTagAutocompleteUrl?
        attrsObject["mac-autocomplete-url"] = "url"
      else if attrs.macTagAutocompleteSource?
        useSource                              = true
        attrsObject["mac-autocomplete-source"] = "autocompleteSource"

      textInput.attr attrsObject

      ($scope, element, attrs) ->
        # Variable for input element
        $scope.textInput          = ""
        $scope.autocompleteSource = []

        if attrs.macTagAutocompleteModel?
          $scope.$watch "textInput", (value) -> $scope.model     = value
          $scope.$watch "model",     (value) -> $scope.textInput = value

        # Clicking on the element will focus on input
