Angularjs dynamic scope variables with example