
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
@angularclass/conventions-loader
Advanced tools
Allow default for @Component
metadata for Angular 2
npm install @angularclass/conventions-loader --save-dev
{
test: /\.ts$/,
loaders: [
'ts-loader',
'@angularclass/conventions-loader'
]
},
Given this simple Component example
app.js
@Component({})
export class App {
}
Webpack will change the code
app.js
@Component({
selector: "app",
styles: [require("./app.css")],
template: require("./app.html")
})
export class App {
}
this is assuming you have coresponding files next to the component. You may overwrite the selector at anytime by providing one. If the selector and the component file name does not match then the coresponding css/template file with the selector will be injected.
enjoy — AngularClass
Learn AngularJS, Angular 2, and Modern Web Development from the best. Looking for corporate Angular training, want to host us, or Angular consulting? patrick@angularclass.com
Apache-2.0
FAQs
Allow default for @Component metadata for Angular 2
The npm package @angularclass/conventions-loader receives a total of 1,337 weekly downloads. As such, @angularclass/conventions-loader popularity was classified as popular.
We found that @angularclass/conventions-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.