Skip to content

Files

Latest commit

87a96e2 · Feb 10, 2022

History

History
53 lines (32 loc) · 992 Bytes

README.md

File metadata and controls

53 lines (32 loc) · 992 Bytes

ng-stopwatch

Stopwatch angular-js component.

Webpack Usage:

npm install

For production: npm run prod For development server: npm run dev

Then, open index.html under dist folder in working directory.

Using with Docker:

Creation:
    docker build -f build.Dockerfile -t webpack-angular-stopwatch .
    docker create  --name "bundlecontainer" webpack-angular-stopwatch
    docker cp bundlecontainer:/beforeWebpack/dist ./
    docker image rm -f webpack-angular-stopwatch
    docker container rm -f bundlecontainer
    docker build -f run.Dockerfile -t webpack-angular-stopwatch .

Create container on port 2000:
	docker run -d -p 2000:80 webpack-angular-stopwatch

Then, open "http://localhost:2000/" in browser of your choice.

Example Usage of Angular Component:

<head>
    <title>Stopwatch</title>
</head>

<body>
    <div ng-app="myApp">
      
        <stopwatch></stopwatch>
        <stopwatch></stopwatch>

    </div>
</body>