Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active November 22, 2017 17:06
Show Gist options
  • Save gskachkov/17210bc9e1a245aee6570e42f15d72bf to your computer and use it in GitHub Desktop.
Save gskachkov/17210bc9e1a245aee6570e42f15d72bf to your computer and use it in GitHub Desktop.
this.model.set({ attr: "foo" });
this.model.attributes.attr = "foo";
this.model.attr = "foo";
$scope.prop = "foo";
setTimeout(function () {
$scope.prop = "foo";
}, 0);
setTimeout($scope.$apply(
function () {
$scope.prop = "foo";
}
), 0);
this.state.prop = "foo";
const obj = {id : "value"};
obj["prop"] = "foo";
delete obj.prop;
this.setState({ prop: "foo" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment