Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ng4-date-countdown-timer
Advanced tools
Readme
npm install ng4-date-countdown-timer --save
In your app.module
, add CountDown
to your declarations:
import {CountDown} from "ng2-date-countdown";
@NgModule({
declarations: [
AppComponent,
CountDown
],
imports: [
BrowserModule
],
bootstrap: [AppComponent]
})
[text]: Change the text displayed in the date
[units]: Choose wich units do you wanna display
[divider]: Choose what do you want to divade the dates
In your html template:
<countdown units="Year | Month | Days | Hours | Minutes | Seconds" end="July 22, 2019"></countdown>
To set a custom Language and divider, set this variable in your component.ts file:
text:any = {
Year: 'Year',
Month: 'Month',
Weeks: "Weeks",
Days: "Days",
Hours: "Hours",
Minutes: "Minutes",
Seconds: "Seconds",
MilliSeconds: "MilliSeconds"
};
In your .html:
<countdown [text]="text" units="Year | Month | Days | Hours | Minutes | Seconds" end="July 22, 2019"></countdown>
To customize the Countdown (.scss), use the class from it (you can inspect from chrome elements) and put the '/deep/' before them, example:
/deep/ .countdown {
width: 100%;
height: 100px;
background: black;
.two-dots {
display: none;
}
.measurements {
color: white;
margin-right: 5px;
padding: 10px;
}
.divider {
font-size: 30px;
}
@todo
Inspired on the component: https://github.com/previousdeveloper/angular2-simple-countdown
FAQs
Angular 4 Date CountDown
The npm package ng4-date-countdown-timer receives a total of 66 weekly downloads. As such, ng4-date-countdown-timer popularity was classified as not popular.
We found that ng4-date-countdown-timer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.