1

how is it possible to have a boolean scope variable that is true when an iframe is loading/reloading?

JS:

$scope.item = {
  src :  "http:example.com",
  isLoading:false
  }

HTML:

<div ngclass="'loading' : item.isLoading">

  <iframe ng-src="item.src">

<div>
CodeToad
  • 4,656
  • 6
  • 41
  • 53

0 Answers0