Change this to use the `attrs.$observe` pattern above. This is needed because optional params was not added until Angular 1.2.