Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angular current year

// In component file
export class SomeComponent {
  currentYear: number = new Date().getFullYear();
}

// In HTML file
<div> {{ currentYear }}. All rights reserved </div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: eslint ignore next line 
Javascript :: jquery redirect 
Javascript :: change color of material design angular progress bar 
Javascript :: js random hex color 
Javascript :: use jquery 
Javascript :: how to delay redirect in javascript 
Javascript :: ReferenceError: __dirname is not defined 
Javascript :: remove attribute in jquery 
Javascript :: get parameter from the actual url javascript 
Javascript :: use recursion to create a range of numbers 
Javascript :: how to set element readonly in jquery 
Javascript :: javascript month name 
Javascript :: Uncaught ReferenceError: jsPDF is not defined 
Javascript :: flash input 
Javascript :: java scripyt code to edit webapge 
Javascript :: how to check variable type jquery 
Javascript :: While trying to resolve module `idb` from file 
Javascript :: TypeError: expressGraphQL is not a function 
Javascript :: javascript hide element by class 
Javascript :: remove a class after 100 milliseconds jquery 
Javascript :: how to color console.log 
Javascript :: : Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Error: 
Javascript :: select first option in dropdown jquery 
Javascript :: jquery check if empty object 
Javascript :: clear terminal node js 
Javascript :: html5 store object in localstorage 
Javascript :: javascript detect internet explorer 
Javascript :: convert an array of strings to numbers 
Javascript :: js is object empty 
Javascript :: responsive slick slider 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =