Angular-At-Directive icon indicating copy to clipboard operation
Angular-At-Directive copied to clipboard

Spaces in Names

Open ncammarata opened this issue 10 years ago • 3 comments

I'd really like to use this for my project, but part of the requirements is that it support names. Think (@nick cammarata) and turn it into an @mention in a similar way that Facebook does it. Is this possible or in the near term for the project?

ncammarata avatar Jun 08 '14 03:06 ncammarata

@ncammarata Unfortunately, this project is unfinished. If you are going to use this for your project, the first thing you need to do is to edit these source code for your api. About your question. There is no way now. Since I am recently working for another project, I have no time to add any new feature for this project. I think you can try to add a new attribute in the HTML like space-after="true" and then edit these code. It should work, I think.

scarletsky avatar Jun 08 '14 05:06 scarletsky

Thanks for your response. What do you mean by unfinished? Would you suggest using what exists now in a production app or is it too untested. Has it been in production before?

ncammarata avatar Jun 08 '14 21:06 ncammarata

@ncammarata As you see, the url of ajax request is hard code. You should modify it for your project otherwise it will not work. I considered adding HTML attribute like api="/search/something" to solve the hard code problem. Then it will looks like <input type="text" at-user auto-complete flag="@" api="/search/something" />.

This is my design for the project. But due to my job, I have no time to finish this feature. This is what I mean that the project is unfinished.

Personally, I do not suggest you to use an unfinished thing in your app. But you can modify the source code, you can make it more suitable for your app.

Finally, I think you can consider using At.js in your app.

scarletsky avatar Jun 09 '14 03:06 scarletsky