Use notify.js on Angular controller
<p>I have a controller sending parameter to a web service, when I get the response from web service I must show a notification (that's why I use notify.js), but the code is not running. I show you:</p>

<p>Controller:</p>

<pre><code>$scope.alert = function(){
        console.log($scope.q + "/" + $scope.s.id + "/" + $scope.k.id);
        // http://localhost:8080/test/cftyu/q/q/" + q + k + s
        return $http.get('http://localhost:8080/test/cftyu/q/q/" + q + k + s)
        .success(function(data) {
            return data;
            console.log(data);
            $.notify("Hello World");
        })
        .error(function(data) {
            return data;
            console.log(data);
        });
    };
    console.log("fin controlador");
</code></pre>

<p>I hope anyone could help me, I know notify is called with jquery not angular I been trying to create a directive but isn't working anyway. I will appreciate any help.</p>

<p>Edit:
I been tryint the solution Dave Cooper proposed but it's not working:</p>

<p>I'm trying your solution but it's not working to me. I've got this controller:  </p>

<pre><code>app.controller('CreateQuestionsController', ['$scope', '$log', '$http', '$window', 'sections', 'kind', 'order', 'notify',
                                       function($scope, $log, $http, 

    $window, sections, kind, order, notify) {
    $scope.alert = function(){
                return $http.get("http://localhost:8080/test/cftyu/q/q/" + q + k + s)
                .success(function(data) {
                    console.log(data);
                    notify("Hello World");
                    return data;
                })
                .error(function(data) {
                    console.log(data);
                    return data;
                });
            };
    }]);
</code></pre>

<p>Edit 2:</p>

<p>View:</p>

<pre><code>&lt;form class="form-horizontal"&gt;
    &lt;div class="form-group"&gt;
        &lt;label for="inputEmail3" class="col-sm-2 control-label"&gt;Pregunta&lt;/label&gt;
        &lt;div class="col-sm-10"&gt;
            &lt;textarea class="form-control" rows="3" ng-model="question"&gt;&lt;/textarea&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
        &lt;div class="col-sm-offset-2 col-sm-3"&gt;
            &lt;label&gt;Clase&lt;/label&gt;
            &lt;select class="form-control" ng-options="kind as kind.name for kind in kinds track by kind.id" ng-model="kind"&gt;&lt;/select&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
        &lt;div class="col-sm-offset-2 col-sm-3"&gt;
            &lt;label&gt;Sección&lt;/label&gt;
            &lt;select class="form-control" ng-options="section as section.sectionname for section in sections track by section.id" ng-model="section"&gt;&lt;/select&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
        &lt;div class="col-sm-offset-2 col-sm-3"&gt;
            &lt;button showNotify type="button" class="btn btn-default btn-lg" ng-click="alert()"&gt;Guardar&lt;/button&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>I load all the js files on the 'main' view, at the bottom like this:</p>

<pre><code>    &lt;!-- Modules --&gt;
    &lt;script src="js/app.js"&gt;&lt;/script&gt;

    &lt;!-- Controllers --&gt;
    &lt;script src="js/controlers/HomeController.js"&gt;&lt;/script&gt;
    &lt;script src="js/controlers/CreateQuestionsController.js"&gt;&lt;/script&gt;
    &lt;script src="js/controlers/ShowQuestionsController.js"&gt;&lt;/script&gt;

    &lt;!-- Services --&gt;
    &lt;script src="js/services/questions.js"&gt;&lt;/script&gt;

    &lt;!-- Directives --&gt;
    &lt;script src="js/directives/notify.js"&gt;&lt;/script&gt;
</code></pre>

<p>The controller is like I posted before</p>

<p>Edit 3:</p>

<p>There is the routes and controller-view connection:</p>

<pre><code>var app = angular.module('onBuy', ['ngRoute']); 

app.config(function ($routeProvider) {
    $routeProvider
        .when('/create/questions/', {
            controller: 'CreateQuestionsController',
            templateUrl: 'views/createQuestions.html'
        })
        .otherwise({
            redirectTo: '/'
        });
});
</code></pre>