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

301
Views
AngularJS TypeError: no es una función

Estoy tratando de entender por qué recibo este error. Traté de poner roomService.isExist dentro de una función y llamarla, pero ocurre el mismo error.

roomService.isExist no es una función

Esto es lo que hay dentro de mi controlador:

 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!