Base solution for your next web application

Activities of "joe704la"

Perfect that worked, this may be a stupid question but what is the difference between $uibModal and $modal

I had to do the same thing for $uibModalInstance to make it work.

Yes it does. The project service works just fine. When I remove $modal it works just fine. For example this works just fine. It has something to do with $modal.

(function () {
    appModule.controller('tenant.views.projects.index', [
        '$scope', 'abp.services.app.project',
        function ($scope,  projectService) {
            var vm = this;

            vm.projects = [];

            vm.getProjects = function() {
                projectService.getProjects({}).success(function (result) {
                    vm.projects = result.items;
                });
            }


            vm.getProjects();
        }
    ]);
})();
Question

I am very new to Angular.js. I keep getting the below error and I cannot figure out why. I understand it has to do with me injecting the $modal but It looks no different than any of the documentation I was going off of. Below the error is the js code.

Error: [$injector:unpr] http://errors.angularjs.org/1.5.0/$injector/unpr?p0=%24modalProvider%20%3C-%20%24modal%20%3C-%20tenant.views.projects.index
    at Error (native)
    at http://localhost:6240/Scripts/angular.min.js:6:416
    at http://localhost:6240/Scripts/angular.min.js:43:7
    at Object.d [as get] (http://localhost:6240/Scripts/angular.min.js:40:270)
    at http://localhost:6240/Scripts/angular.min.js:43:69
    at d (http://localhost:6240/Scripts/angular.min.js:40:270)
    at e (http://localhost:6240/Scripts/angular.min.js:41:1)
    at Object.invoke (http://localhost:6240/Scripts/angular.min.js:41:86)
    at T.instance (http://localhost:6240/Scripts/angular.min.js:86:444)
    at u (http://localhost:6240/Scripts/angular.min.js:65:338) <div ui-view="" class="fade-in-up ng-scope">
(function () {
    appModule.controller('tenant.views.projects.index', [
        '$scope', '$modal', 'abp.services.app.project',
        function ($scope, $modal, projectService) {
            var vm = this;

            vm.projects = [];

            vm.getProjects = function() {
                projectService.getProjects({}).success(function (result) {
                    vm.projects = result.items;
                });
            }

            vm.openCreateProjectModal = function () {
                var modalInstance = $modal.open({
                    templateUrl: '~/App/tenant/views/projects/createProjectModal.cshtml',
                    controller: 'tenant.views.projects.createProjectsModal as vm',
                    backdrop: 'static'
                });

                modalInstance.result.then(function () {
                    getProjects();
                });
            };

            vm.getProjects();
        }
    ]);
})();
Question

Is there a way to turn off the different languages and just have one default language. I have no need for multiple languages.

Sounds good Thanks

Question

I noticed in the Audit logs that when a user is created it saves a log of their password in plain text. Would you have an idea where I can change this?

Excellent, thank you.

I have handled sending AntiForgery tokens with Ajax before but I am pretty new to Angular so I will need to do some more research on how to handle this with Angular.

Answer

<cite>hikalkan: </cite> Hi,

You should configure it on the host settings page (<a class="postlink" href="http://www.aspnetzero.com/Documents/Development-Guide#host-settings">http://www.aspnetzero.com/Documents/Dev ... t-settings</a>). Is there a problem about that?

Yes, I got this working. I missed how to login to the tenant management side so I kept missing the SMTP settings page since you cannot do that from the tenant management side.

Thank you.

Question

I was just wondering if there was a reason you didn't use Antiforgery Tokens to prevent Cross-site Request Forgery?

Question

I published my test site to a free Azure web app service and it doesn't allow to send emails from it. It looks like I will need to configure the app to use gmail or something like that. Where would I go to configure that within the code base?

Showing 231 to 240 of 246 entries