Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
angular is not defined In AngularJS

I am new to AngularJS and currently, I am doing controllers in AngularJS, but I don't know I got an error angular is not defined Line number 21 if someone knows the issue inform me.

<!DOCTYPE html>
<html lang="en" ng-app="myLangApp">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.2/angular.min.js" integrity="sha512-7oYXeK0OxTFxndh0erL8FsjGvrl2VMDor6fVqzlLGfwOQQqTbYsGPv4ZZ15QHfSk80doyaM0ZJdvkyDcVO7KFA==" crossorigin="anonymous" referrerpolicy="no-referrer" async></script>
    </head>
    <body>
        <div ng-controller="language">
            Select your favorite language:
            <button ng-click="selectLanguage('PHP')">PHP</button>
            <button ng-click="selectLanguage('javascript')">javascript</button>
            <button ng-click="selectLanguage('cpp')">cpp</button>
            <button ng-click="selectLanguage('java')">java</button>

            <p>You have selected: {{ myFavLang }}</p>
        </div>
        <script>
            var app = angular.module('myLangApp', []);
            app.controller('language',($scope)=>{
                $scope.myFavLang = 'None';
            })
        </script>
    </body>
</html>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

just add simple script to load the angular

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.2/angular.min.js" ></script>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!