25
rated 0 times
[
28]
[
3]
/ answers: 1 / hits: 15918
/ 8 Years ago, mon, october 24, 2016, 12:00:00
I have a Angular JS Application,
<div class=col-lg-12 ng-init=getTableData('{{URL::route('get_repair_category')}}')>
When Page loading the getTableData will execute, but I want to check a variable $rootScope.Dealer and switch the function name of initialization.
Eg : if $rootScope.Dealer value present I wanto execute the function named getDealerData
And If the value is not set need to execute the getTableData function.
How can I make this in anglar js template.
I just tried the ng-if, but its not working...
More From » angularjs