# Category: angularjs-controller

## AngularJS Directive with Controller Constructor Never Fires

Hi I am trying to write a angularJS directive with a controller in typescript but I can’t seem to get my constructor to fire inside the controller. I have searched the internet extensively but have not been able to find much information as most people are not using typescript with angularJS. The version of angularJS I am using is 1.5.10. Any insight into this issue would be greatly appreciated. class AdvancedFindDirective implements ng.IDirective { public […]

## console.log() not working inside Angularjs controller

There have been several posts related to this issue, but so far I have not found a resolution. Following is a slight modification of the example on pages 408-409 of Brad Dayley’s “Node.js. MongoDB and Angular Web Development” (the original edition, not the Second). The set up is as follows. Create a directory called “test” (or whatever you want) and in this directory (1) place the following file node_server.js, and (2) create a subdirectory called […]

## Adding a filter to AngularJS project created with Angular CLI

I’m a quite a novice with Angular but I created a project with the CLI and I am attempting to create a custom filter. The problem is I do not know where to put the declaration and bind it, seeing as how the CLI doesn’t seem to have a clearly defined app module you can reference. Where do I put this and do I declare it as normal? Source: AngularJS