Child pages
  • Server Side Scripting

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
$scope.onShow = function() {
  // code to execute when the component is shown/created atin the client.    
}


onHide: which will be called every time the component gets hidden

Code Block
languagejs
$scope.onHide = function() {
  // code to execute when the component is hidden/destroyed atin the client.    
}

Any code the component wants to execute server-side for show/hide can be added to these two functions by:
- defining them in the internalApi section of the component's .spec file
- defining them in the server side scripting file of the component.

...