I am new to AngularJS and was looking at the "Miguel Castro–AngularJS for ASP.NET MVC Developers" sample downloaded from "http://www.melvicorp.com/downloads.html".
When running the code sample of project 2 (AngularRouting) from Miguel's sample with new version of AngularJs (installed using NuGet), the routing doesn't work and it gives the following error:
[$location:nobase] http://errors.angularjs.org/1.5.6/$location/nobase
If I replace the new version of AngularJs Script files with older ones from Miguel's sample project, it works just fine.
I has clearly something to do with version, but what it is exactly?
Thanks
Related
I'm trying to get started with module development using Abp framework, the potential of using the framework is huge with the community and the abp.commercial support if it's needed, but it's not always easy to up and running the application. Let me explain...
I have created a new module: abp new sample.module -t module. ABP CLI version 3.3.1
After that, I have added a new entity in Domain (member.cs) and using AbpHelper.GUI to auto-generate all the code.
🎉My module works correctly using Hosts/*.web.unified test project. Well done! :).🎉
NOTE: see here if you want to know how to solve a tricky issue for me at this point.
Next, I have added assemblies one by one to the Host App. I have mapped:
Module.Application --> Host.Application
Module.Application.Contracts --> Host.Application.Contracts
Module.Domain --> Host.Domain
Module.Domain.Shared --> Host.Domain.Shared
Module.EntityFrameworkCore --> Host.EntityFrameworkCore
Module.HttpApi --> Host.HttpApi
Module.HttpApi.Client --> Host.HttpApi.Client
Module.Web --> Host.Web
Finally, I added Module Dependencies and Configurations, following this post.
🎉 Restore, build, dotnet ef migrations, and *.HostApp.DbMigrator work like a charm and the database is updated based on the entities in the module. Cool! 🎉
But... when I run my Host App and click on the new module menu contributor the route doesn't work 😒 but it seems to be correct based on the page structure of the module and it worked fine using Hosts/*.web.unified test project inside the module.
I tried several times with no lucky 🤦♂️
Something is missing in the code that I cannot see.
Any help is really appreciated.
Because the Host application and Module are in different solutions. I was missing to include an assembly (Module.Web.Views.dll) into the Host web project.
I am using springfox-swagger2 and springfox-swagger-ui. both version 2.9.2
I have enabled deepLinking with this code:
#Bean
public UiConfiguration swaggerUiConfig() {
return UiConfigurationBuilder.builder().deepLinking(true).build();
}
Somehow it suddenly stopped working, it doesnt redirect me to method in link...
It works only on controllers, for example this works
http://localhost:8080/api/swagger-ui.html#/email-controller/
but not this http://localhost:8080/api/swagger-ui.html#/email-controller/getFullEmailListUsingGET
Any ideas?
I tried older version 2.7.0 and there it works...
Edit: I solved this by using version 2.8.0 where deepLinking works correctly for both controllers and operations. Design of 2.8.0 looks like 2.9.2, 2.7.0 was also working but the design was older.
I am using sencha sdk tool 2 to build my extjs 4 application. Build is working fine and it generated two files -
app-all.js - minified
all-classes.js - non-minified
But when I am using minified app-all.js with ext.js in my index-mini.html page it is not working and giving me the error "Cannot read property 'get' of undefined" at Ext.util.Cookies.get()
My application is working fine when I am using ext-all.js instead of ext.js.
I saw that my application is using some util classes(like - Ext.util.Cookies) that are not present in ext.js. Also for development we are using ext-all.js in our index.html but for deployment we want to use ext.js.
Questions -
How can I run my application using ext.js & app-all.js?
-
Thanks in advance.
The problem is that ext-all.js (and the un-minified ext-debug.js) only provide the minimum number of core ExtJS classes needed to get up and running. Any additional classes should be dynamically loaded as separate files
Section 2.2 of Getting Started describes this, and also explains that you should dynamically load any additional classes.
Basically, you need to include a requires statement in your application as shown below.
requires:[
'Ext.util.Cookies'
],
I have an extjs 5.0 application that don't use the MVC model, ie: all the code is in one file called app.js.
I wanted to upgrade from version 5.0 to 5.1, What is the right way and steps to do so? knowing that I don't use index.html, instead I have a starting page called login.html.
I generated a new app with version 5.1, and modified the path from index.html to login.html, and replaced the ext folders the old with the new, and the build folders as well.
The error message chrome gives me is:
Uncaught TypeError: undefined is not a function
the error occurs in the file FocusManager.js, the line:
needListeners[i].addFocusListener();
The FocusManager is deprecated in Ext JS 5.1 (although the documentation does not reflect this clearly). Avoid using it.
I minified/built my app that uses ExtJS 4.2.0 (free version) using Sencha SDK Tools 2.0.0 beta3, and the app was built successfully. However, when I try deleting the old "app" folder containing my old classes, the app no longer works.
I also tried generating a new app using Sencha CMD 4.0.1.45 and then adding my classes, but the results are the same.
I am confused why this happens, because as I understood it, your old classes are not needed to deploy production app. In fact, the only javascript files you need to include in your "index.html" file are "ext.js" and "app-all.js".
I used Firebug and saw in the DOM that the app, along with my classes, are loaded.
I also noticed that "app-all.js" defines classes like this:
Ext.define("MyApp.view.MyClass"...
Is this really how it is supposed to behave? or am I missing something?
Thanks in advance!
Okay, I got it. A .js file in my application calls Ext.require on itself, causing the app wiring go crazy.