Hi,
Here are the steps to create a Angular App or Site
1. Download Angular or put updated link angular n your HTML, as below
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular-animate.js"></script>
2. Now Place ng-app attribute into html or body or in div tag, as below
<body ng-app="GameInformation">
3. Now place ng-controller into div accordingly, as below
<div id="completeGames" ng-controller="gameInfo">
4. Now Create a JS file and write the below code based on mentioned ng-app and ng-controller name
var app = angular.module('GameInformation', []);
app.controller('gameInfo', function($scope, $http)
{
console.log("App Initiated");
});
Here are the steps to create a Angular App or Site
1. Download Angular or put updated link angular n your HTML, as below
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular-animate.js"></script>
2. Now Place ng-app attribute into html or body or in div tag, as below
<body ng-app="GameInformation">
3. Now place ng-controller into div accordingly, as below
<div id="completeGames" ng-controller="gameInfo">
4. Now Create a JS file and write the below code based on mentioned ng-app and ng-controller name
var app = angular.module('GameInformation', []);
app.controller('gameInfo', function($scope, $http)
{
console.log("App Initiated");
});
No comments:
Post a Comment