Click here to Skip to main content
14,490,767 members

JavaScript

 
Questiongetting error period.draggable is not a function Pin
Gopal Kan12-Sep-18 19:49
MemberGopal Kan12-Sep-18 19:49 
AnswerRe: getting error period.draggable is not a function Pin
Graham Breach12-Sep-18 21:08
MemberGraham Breach12-Sep-18 21:08 
QuestionModal popup with datalist Pin
thepast12-Sep-18 8:18
Memberthepast12-Sep-18 8:18 
QuestionJavascript and extensions Pin
Member 1398114211-Sep-18 15:10
MemberMember 1398114211-Sep-18 15:10 
QuestionWhen pressing right and left keys object not moving in javascript game. Pin
Member 1396097131-Aug-18 11:10
MemberMember 1396097131-Aug-18 11:10 
QuestionAngular 6, lazy loading, with routerLink="/reviews" it works, type the Url localhost:5000/reviews and page not found Pin
jkirkerx17-Aug-18 13:06
professionaljkirkerx17-Aug-18 13:06 
AnswerRe: Angular 6, lazy loading, with routerLink="/reviews" it works, type the Url localhost:5000/reviews and page not found Pin
jkirkerx18-Aug-18 13:31
professionaljkirkerx18-Aug-18 13:31 
General[Solved] Pin
jkirkerx20-Aug-18 9:25
professionaljkirkerx20-Aug-18 9:25 
It was an error in my startup.cs in Configuration. I didn't have the all the routes loaded in the array below.
So it was .net core that was rejecting direct url typing or deep linking.
Maybe I should remove this. But I learned alot of routing and navigation in Angular and will experiment with removing it.
var angularRoutes = new[] {
    "/admin",
    "/error",
    "/home",
    "/reviews",
    "/portfolios",
    "/setup"
    };

app.Use(async (context, next) =>
{
    context.Response.Headers.Add("X-Frame-Options", "DENY");
    if (context.Request.Path.HasValue && null != angularRoutes.FirstOrDefault(
        (ar) => context.Request.Path.Value.StartsWith(ar, StringComparison.OrdinalIgnoreCase)))
    {
        context.Request.Path = new PathString("/");
    }                

<pre>
await next();

});
<div class="signature">If it ain't broke don't fix it
Discover my world at <a href="https://jkirkerx.com" target="_blank">jkirkerx.com</a></div>

QuestionCoding Newbie Pin
Rokas Steiblys17-Aug-18 10:21
MemberRokas Steiblys17-Aug-18 10:21 
AnswerRe: Coding Newbie Pin
Richard MacCutchan17-Aug-18 21:37
mveRichard MacCutchan17-Aug-18 21:37 
AnswerRe: Coding Newbie Pin
Nathan Minier20-Aug-18 1:34
professionalNathan Minier20-Aug-18 1:34 
SuggestionRe: Coding Newbie Pin
Member 1395671021-Aug-18 6:28
MemberMember 1395671021-Aug-18 6:28 
QuestionExsplicit JavaScript regular exspression Pin
calmchess16-Aug-18 13:17
Membercalmchess16-Aug-18 13:17 
AnswerRe: Explicit JavaScript regular expression Pin
Richard Deeming17-Aug-18 7:02
mveRichard Deeming17-Aug-18 7:02 
QuestionUsing data from odata in react-native Pin
Mike V Baker12-Aug-18 16:59
MemberMike V Baker12-Aug-18 16:59 
AnswerRe: Using data from odata in react-native Pin
Richard MacCutchan12-Aug-18 21:03
mveRichard MacCutchan12-Aug-18 21:03 
QuestionWeb Application Pin
Awal Swed9-Aug-18 4:35
MemberAwal Swed9-Aug-18 4:35 
AnswerRe: Web Application Pin
Richard MacCutchan9-Aug-18 5:48
mveRichard MacCutchan9-Aug-18 5:48 
Questioniframe history not cleaned up on refresh in Chrome and Opera Pin
CCTuss9-Aug-18 3:25
MemberCCTuss9-Aug-18 3:25 
AnswerRe: iframe history not cleaned up on refresh in Chrome and Opera Pin
F-ES Sitecore9-Aug-18 23:35
mveF-ES Sitecore9-Aug-18 23:35 
GeneralRe: iframe history not cleaned up on refresh in Chrome and Opera Pin
CCTuss10-Aug-18 1:27
MemberCCTuss10-Aug-18 1:27 
Questionhow to add image Pin
Member 139364115-Aug-18 22:35
MemberMember 139364115-Aug-18 22:35 
AnswerRe: how to add image Pin
Nathan Minier7-Aug-18 2:49
professionalNathan Minier7-Aug-18 2:49 
AnswerRe: how to add image Pin
ZurdoDev7-Aug-18 3:43
mveZurdoDev7-Aug-18 3:43 
AnswerRe: how to add image Pin
Shraddha_Patel15-Apr-19 19:40
MemberShraddha_Patel15-Apr-19 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.