               scope.ngFrom = fromParsed
               scope.ngTo = toParsed
             )
-        )
+
+        slider.noUiSlider(config)
 
         scope.$watch('ngFrom', (newVal, oldVal) ->
           if newVal isnt fromParsed

      start: "@"
      step: "@"
      end: "@"
      ngModel: "="
      ngFrom: "="
      ngTo: "="

      else
        parsedValue = null

        config =
          range: [scope.start, scope.end],
          start: scope.ngModel or scope.start,
          step: scope.step or 1
          handles: 1
        config[callbackType] = ->
            parsedValue = slider.val()

            scope.$apply(->
              scope.ngModel = parseFloat parsedValue
            )

        slider.noUiSlider(config)

        scope.$watch('ngModel', (newVal, oldVal) ->
          if newVal isnt parsedValue
