jackjohnson44
asked on
angularjs pass parameter to controller via tag
Hi,
I have an app and controller. I want to pass a variable through an html tag without using a directive or using init. This is being added to existing code. I can't change the line below.
I have the div below. How can I read the height and width values?
<div data-ng-app="AngularApp" data-ng-controller="TestCo ntroller" width = '100' height = '200' ></div>
I have an app and controller. I want to pass a variable through an html tag without using a directive or using init. This is being added to existing code. I can't change the line below.
I have the div below. How can I read the height and width values?
<div data-ng-app="AngularApp" data-ng-controller="TestCo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.