 
     defaultOptions = fcsaNumberConfig.defaultOptions
 
-    getOptions = (scope) ->
+    getOptions = (scope, attrs) ->
         options = angular.copy defaultOptions
-        if scope.options?
-            for own option, value of scope.$eval(scope.options)
+        if attrs.fcsaOptions?
+            # alert("fcsa-options!!")
+            for own option, value of scope.$eval(attrs.fcsaOptions)
                 options[option] = value
         options
     


            if options.preventInvalidInput == true
              elem.on 'keypress', (e) ->
                e.preventDefault() if isNotDigit(e.which) && isNotControlKey(e.which)
    }
]



            elem.on 'keyup', ->
              triggerUpdate = ()->
                if scope.grade.raw_score != elem.val()
                  scope.grade.customUpdate(elem.val())
                scope.rawScoreUpdating = false
