Questions tagged [angular2-template-loader]
4 questions
                    
                    1
                    
            vote
                
                2 answers
            
        Modify .ts webpack loader to have multiple files
How can I modify my .ts webpack loader so that instead of having a single main.[hash].js file with my app's code I can have a .js file for each .ts file?
Right now this is my webpack loader to handle .ts files:
  output: {
   filename:…
         
    
    
        ilovelamp
        
- 739
- 3
- 9
- 20
                    1
                    
            vote
                
                1 answer
            
        angular2-template-loader: Error: Can't resolve './' in \@angular\compiler\src
Trying to bundle my angular2 app with webpack2 and angular2-template-loader, but getting this error:
ERROR in ./~/@angular/compiler/src/compile_metadata.js
Module not found: Error: Can't resolve './' in…
         
    
    
        eagor
        
- 9,150
- 8
- 47
- 50
                    0
                    
            votes
                
                0 answers
            
        templateUrl Angular 4 and asp.net MVC
I'm trying to load templateUrl parameter from Angular component in MVC application and get this error:
Failed to load resource: the server responded with a status of 404 (Not Found)
How could I use templateUrl parameter in app.component.ts?
         
    
    
        Kram_
        
- 763
- 2
- 6
- 12
                    0
                    
            votes
                
                1 answer
            
        Dynamic template HTML for Angular 2 component
I would like to dynamically determine the HTML template for Angular 2 component. Is that possible? How can we achive this functionality in Angular?
my objective is to have same code base/components but different HTML based some configuration/URL of…
         
    
    
        Rajesh
        
- 1
- 1