This story is unavailable.

You really shouldn’t be using document.getElementById in angular if you have ng-model for that.

<input id= “gettitle” type=”text” name=”title”>
should actually be

Html: <input ng-model=”getTitle” type=”text” name=”title”>
JS: $scope.getTitle = “”;
Then modify the current variable in the js file because now it’s a 2-way var.

Just a note to be aware of.

Like what you read? Give Jonathan Bijos a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.