title: how to get the current year in Angular 1 using just {{ }}?
body: <p>In a fairly complicated angular web app, I need the dynamic year to show up in a footer that doesn't have a directive. Is there an angular way to do it using just <code>{{SomeDateFunction()}}</code>? </p>
  
  <p>I've seen people say <code>{{Date.now() | date:'yyyy'}}</code>, which doesn't display anything. I've tried <code>{{new Date().getFullYear()}}</code> which breaks angular and the error says </p>
  
  <blockquote>
    <p><a href="https://docs.angularjs.org/error/$parse/syntax?p0=Date&amp;p1=is%20an%20unexpected%20token&amp;p2=5&amp;p3=new%20Date().getFullYear()&amp;p4=Date().getFullYear(" rel="noreferrer">Syntax Error: Token 'Date' is an unexpected token at column 5 of the expression [new Date().getFullYear()] starting at [Date().getFullYear(].</a></p>
  </blockquote>
  
  <p>I don't want to link a scope from the root scope, or put this in a directive just for the year, this is exactly the kind of thing {{ }} expressions should be able to solve, and non-date related simple {{ }} expressions display just fine. </p>