Link to home
Start Free TrialLog in
Avatar of jackjohnson44
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="TestController" width = '100' height = '200' ></div>
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial