Skip to content

Instantly share code, notes, and snippets.

@tanhauhau
Created March 24, 2019 12:02
Show Gist options
  • Save tanhauhau/d129b2683fbc163fe2bf5343b73f691a to your computer and use it in GitHub Desktop.
Save tanhauhau/d129b2683fbc163fe2bf5343b73f691a to your computer and use it in GitHub Desktop.
setting a scope
// setting a property in the `$scope` object triggers
// the framework to update the model and the DOM
$scope.name = 'Hello';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment