Giter Site home page Giter Site logo

semaphore-ng2-webpack's Introduction

Setup for Angular 2 with Webpack

This is the code setup for the article Setting Up Angular 2 with Webpack

This code sets up an Angular 2 project with Webpack is a simple way while also providing the configuration for unit testing.

To install all the dependencies run:

npm i

For single, headless tests use:

npm run test:headless

To run code in a browser user:

npm start

semaphore-ng2-webpack's People

Contributors

derzyklop avatar gonzofish avatar justmike avatar markschad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

semaphore-ng2-webpack's Issues

http://localhost:9000/process.component.html 404 (Not Found)

Hi, thank you for the tutorial and the explanations towards how webpack works. I have spend sizable time trying to add new components to this starter and it is been failing. I am adding the component on the same level as the app of the question component and I am using the export from index.ts but it is not recognizing where the html is? I also tried to import the class directly from the folder with no help. any tinkers I can utilize to help navigate this issue. thanks again.

I found the issue, I had to use "template:require('path')" instead of template:'path'.

Not able to use templateUrl in app.component.ts file

Hi guys, I am not able to use templateUrl in my *.component.ts files and i need to use template:require('') instead of it. can you please guide me what changes do i need to make into my file structure or in webpac configuration. TIA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.