Search code examples
angularjsscopedirectiveangular-ngmodel

can't access ng-model from directive template


I am trying to access a model which resides in template of directive. But directive's scope never displays that model. What wrong I'm doing ?

http://jsbin.com/xorujuqube/edit?html,js,console,output [JSBIN-Reference]


Solution

  • Yes what I was missing was , initializing an model from directive along with object & property variable ie. $scope.Obj.proper = true ;