Update localFactory.js

added $parse to make sure any type of scope variable any levels deep works.