How do I $watch multiple interpolated attributes in a directive?
问题 I don't understand how to watch multiple attributes at the same time in the link function, so I create an object with all the parameters and I watch for it. But I noticed that the attribute in the link function is a string and not an object so I'm using angular.fromJson(val). All the example I found just use one parameter Could you explain how to watch multiple attributes? Thanks EDIT : I cannot use attrs parameter because I need to bind the attributes -- i.e., they require interpolation. For