Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-template-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-template-loader

Angular2 webpack loader that inlines your angular2 templates and stylesheets into angular components.

  • 0.6.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
386K
increased by582.02%
Maintainers
1
Weekly downloads
 
Created

What is angular2-template-loader?

The angular2-template-loader is a Webpack loader that inlines HTML and styles in Angular components. It is used to preprocess Angular component templates and styles, making it easier to work with Angular applications in a Webpack build process.

What are angular2-template-loader's main functionalities?

Inline HTML Templates

This feature allows you to inline HTML templates in Angular components. By using angular2-template-loader in the Webpack configuration, it processes TypeScript files to replace template URLs with the actual HTML content, making the component self-contained.

module.exports = {
  module: {
    rules: [
      {
        test: /\.ts$/,
        use: [
          'ts-loader',
          'angular2-template-loader'
        ]
      }
    ]
  }
};

Inline Styles

This feature inlines styles in Angular components. Similar to HTML templates, it processes the style URLs in TypeScript files and replaces them with the actual CSS content, allowing for easier component management.

module.exports = {
  module: {
    rules: [
      {
        test: /\.ts$/,
        use: [
          'ts-loader',
          'angular2-template-loader'
        ]
      }
    ]
  }
};

Other packages similar to angular2-template-loader

Keywords

FAQs

Package last updated on 08 Feb 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc