Questions tagged [angular-require]

6 questions
1
vote
1 answer

Cannot find require but already have @types/node installed and configured globally in Angular

I'm new to Angular and just tried creating my first directive for google maps autocomplete. But I'm having a problem in the directive.ts file. At the top I have a require that cannot be found so it fails to build the app. const google =…
chuckd
  • 13,460
  • 29
  • 152
  • 331
1
vote
1 answer

Angular input file required

I have a div which contains one or more inputs files according to a list. This is generated with ngFor. I remove or add element of the list with two buttons and of course it updates the HTML. Here is the html:
PierBJX
  • 2,093
  • 5
  • 19
  • 50
1
vote
1 answer

Error: [$compile:ctreq] data passing between two directive from different module

I have two different module in which I have two directives. I need to pass data between these two directive. I use require property. but I get some error Error: [$compile:ctreq] Controller 'yearSort', required by directive 'budgetSort', can't be…
1
vote
1 answer

ng-describe/Angular/Karma unit testing: Compiling a directive with a required controller using ng-describe's setupControllers

I'm writing Karma unit tests for angularJS using ng-describe (which I must say, is awesome). I've got two directives. I want to test directive testing which requires somethingController. code: angular.module('A', []) .directive('testing',…
1
vote
1 answer

Basic Integration angular js and require js not working

It's seem to be easy but trust me i wasted almost my 4 hours on it still didn't find out what is wrong in it. Very simple setup install everything with bower like require angular domReady bootstrap fontawesome..etc. Sorry if I forgot to add…
squiroid
  • 13,809
  • 6
  • 47
  • 67
0
votes
0 answers

$compile:ctreq error when testing directive using require

I'm testing a really simple directive using Karma : .directive('a', function() { return { restrict: 'A', controller: function() { } } }) .directive('b', function() { return { restrict: 'E', …
Vincent
  • 384
  • 1
  • 3
  • 11