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

303
Views
AngularJS TypeError: is not a function

I'm trying to understand why I'm getting this error, I tried to put roomService.isExist inside a function and call it but same error occurs

roomService.isExist is not a function

This is what is inside my controller:

import { roomService } from 'roomService';
angular.module('roomCreation', ['api'])
  .controller('RoomController', ($scope, $element, $timeout, Api) => {
    const nameInput = $element[0].querySelector('input');
    $scope.room = Api.getRoom();
    $scope.$watch('elements[0].name', () => {
      roomService.isExist($scope.room.name, $scope.room.domainId).then((response) => {
        console.log(response)
      })
      $scope.setValid((!!$scope.elements[0].name));

    });
    $timeout(() => {
      domUtils.putCursorAtEnd(nameInput);
    });
  });
<div class="Room-nameEditor" ng-controller ="RoomController">
  <form name="linkForm">
    <fieldset>
      <input type="text" name="template" ng-model="elements[0].name" id="in" clearable/>
    </fieldset>
  </form>
</div>

about 4 years ago · Juan Pablo Isaza
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!