Answers for "init angular project"

38

install angular cli

npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
Posted by: Guest on March-13-2020
22

setup new angular project

/*
Setting up new angular project and run on browser
*/
npm install -g @angular/cli
ng new project-name
cd project-name
ng serve

/*
I hope it will help you.
Namaste
*/
Posted by: Guest on May-07-2020
0

ng init

<!DOCTYPE html>
<html>
<head>
    <meta chrset="UTF 8">
    <title>Event Registration</title>
</head>
<body>

<script src="https://code.angularjs.org/1.6.9/angular-route.js"></script>
<script src="https://code.angularjs.org/1.6.9/angular.js"></script>
<script src="https://code.angularjs.org/1.6.9/angular.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>

<h1> Guru99 Global Event</h1>

<div ng-app="" ng-init="quantity=1;price=5">

    People : <input type="number" ng-model="quantity">

    Registration Price : <input type="number" ng-model="price">

    Total : {{quantity * price}}

</div>

</body>
</html>
Posted by: Guest on August-19-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language