Skip to content Skip to sidebar Skip to footer

Change Url Location On Click The Div

I want to change location on clicking the div . Below is code
Copy

Also see when to use single, double and no curly braces in angular directives: https://stackoverflow.com/a/17879046/1177295

Solution 2:

SImply change

ng-click="go('item1.title)"

to

ng-click="go(item1.title)"

Here is a DEMO

Solution 3:

So your HTML can be changed as like below

<div class="divsub" ng-repeat="item1 in content" ng-click="ng-click="go(item1.title)"">
<divclass="divsubtitle"><a >{{item1.title}}</a></div><divclass="divsubinner"></div><divclass="divsublink"><divstyle="float:left;text-decoration:underline;margin-left:19px">View Demo</div><divstyle="float:left;text-decoration:underline;margin-left:10px">Download</div></div>

From the above comments and answer

Post a Comment for "Change Url Location On Click The Div"