Duc Hong

1

votes
2

answer
1.6k

views

Angularjs UI-router controller not update after resolve

I have a problem with using ui-router in Angularjs. The scenario is very simple, I have a list of users, when I click on the user's name, the view will jump to the edit form (this one is also the create-new-user form). But the problem is, the returned value after resolving on the edit state doesn't...
Duc Hong
1

votes
0

answer
24

views

Neutrinojs react component unexpected token with <></>

I'm creating an internal custom React component using Neutrinojs React component preset. So far I've managed to setup and build it. But somewhere in my component code I'm using this: Hello Custom Component and when I try to start the development mode, it won't run because of that syntax. If I manua...
Duc Hong
1

votes
1

answer
32

views

Add additonal class names to custom React component

I'm wondering how to add additional class name to a custom React component, like a Button. So far I've tried with a traditional way of using class1 ${class2} and even classnames but it's not successful. Here's my sample to my attempt: https://codesandbox.io/s/1zp7m2yv3 import React from 'react'; im...
Duc Hong
1

votes
4

answer
2.7k

views

Angularjs - Checking duplicated email on blur in directive

I ran into a problem when I want to check whether the mail has been registered or not in the db, but only on the blur event ( I dont want it to check on every change ). So I wrote a directive that I can re-use in other places in my app. But the problem is the directive keeps checking even when I sti...
Duc Hong
3

votes
0

answer
563

views

Angularjs sortable wrong order on view

I've been working around with Angularjs and sortable / draggable. Everything seems to work fine until I change the elements's position within the sortable. The order of the list is right but on the view, it's in the wrong order. This happens if I have more than 2 items in the sortable list, I also h...
Duc Hong
2

votes
4

answer
402

views

jquery selector variable with event [duplicate]

This question already has an answer here: Bind a function on multiple jQuery elements at once 4 answers I'm having a trouble with selector variable with jQuery event. When I store two or three jquery objects into variables, how can I write code in the same event function using them without repeati...
Duc Hong