AngularJS ng-使用外部链接单击而不使用控制器?

AngularJS ng-使用外部链接单击而不使用控制器?,angularjs,Angularjs,我需要在单击单选按钮时重定向外部链接。 在不使用本地javascript的情况下,任何控制器都是可能的 <input type="radio" onclick="location.href = 'www.yoursite.com';"/> 使用本机javascript <input type="radio" onclick="location.href = 'www.yoursite.com';"/> 使用纯javascript <input type="ra

我需要在单击单选按钮时重定向外部链接。
在不使用本地javascript的情况下,任何控制器都是可能的

<input type="radio" onclick="location.href = 'www.yoursite.com';"/>

使用本机javascript

<input type="radio" onclick="location.href = 'www.yoursite.com';"/>

使用纯javascript

<input type="radio"class="two" onclick="location.href='http://example.com'"/>

请参考我在JSFIDLE中的示例

使用纯javascript

<input type="radio"class="two" onclick="location.href='http://example.com'"/>

请参考我在JSFIDLE中的示例


是的,如果不需要与angularjs进行任何交互,请使用原始javascript是的,如果不需要与angularjs进行任何交互,请使用原始javascript