getFullYear within moment in angular

JavaScript
 alert((new Date()).getFullYear());
Source

Also in JavaScript: