🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

angular-templatecache-loader-2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-templatecache-loader-2 - npm Package Compare versions

Comparing version
0.3.0
to
0.3.1
+1
-1
package.json
{
"name": "angular-templatecache-loader-2",
"version": "0.3.0",
"version": "0.3.1",
"description": "Webpack angular templateCache loader",

@@ -5,0 +5,0 @@ "main": "index.js",

# Angular templatecache webpack loader
> This repo adds the
Puts HTML files to Angular $templateCache.

@@ -49,5 +51,18 @@

3. You can also use context in webpack to pass correct template url. See [Context example](https://github.com/EJIqpEP/angular-templatecache-loader/tree/master/examples/context)
3. relativeTo - remove a string from the path
relativeTo is used to strip a matching prefix from the path of the input html file.
```javascript
{
test: /\.html$/,
loader: "angular-templatecache-loader?relativeTo=/public/"
}
```
The above will remove the "/public/" from the generated templateUrl path
4. You can also use context in webpack to pass correct template url. See [Context example](https://github.com/EJIqpEP/angular-templatecache-loader/tree/master/examples/context)
```javascript
var app = path.join(__dirname, 'app');

@@ -54,0 +69,0 @@