AngularJs: Show name of the month given the month number
angularjs, angularjs-directive
Solution
Please take a look at the documentation at https://docs.angularjs.org/api/ng/filter/date. There you will see the desired format:
{{date_expression | date:'MMMM'}}
From the docs:
'MMMM': Month in year (January-December)
Problem
I have the month as a number (1,2,3,...) and would like to display the corresponding name. How can I do this? Is it possible to use `{{ date_expression | date[:format] }}`