[AngularJS] Re: Angular2+ Routing with PathLocationStrategy used in HTML for content management

2017-03-09 Thread Sander Elias
Hi Martin, Hmm, I should have noticed you were talking about an Angular app instead of AngularJS. I'm not so sure there... Let me check out your plunk, check some docs/source, and come back to you. Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: Angular2+ Routing with PathLocationStrategy used in HTML for content management

2017-03-09 Thread Martin Kuhn
Hi Sander, thank you for responding. I did a little plunkr to demonstrate the behaviour -> https://plnkr.co/edit/elLlqKbBsDRgTqcb8OnA?p=preview Here I have 2 components -> routing via [routerLink] works fine. But when I try to specify the link in html which is shown via [innerHtml] it does

[AngularJS] Re: Multiple template layout and form failures

2017-03-09 Thread Sander Elias
Hi Michael, I would move the side-bar into the app-shell . I know that is not an angular resource, but the principle stands on it own. In angular, it makes sense to approach the app-shell as a component. It can, for example, show a

[AngularJS] Re: Angular 2 + ASP.NET

2017-03-09 Thread Sander Elias
Timour, Guest, ASP.NET is server-side tech. It does operate on/in your app BEFORE it gets send to the client. Once it's send off, there is nothing you can do anymore. Angular is client side tech. it operates on/in your app AFTER it is received in the client. You can't do any server-side

[AngularJS] Multiple template layout and form failures

2017-03-09 Thread Michael Glaser
Hey everyone, Been messing with Angular2 for about 3 months now. My site is coming along but it's a slow process and you run into issues from time to time. Here is one issue. I've been working on building a form using ReactiveFormsModule. It's just in the layout stages so it does absolutely

[AngularJS] Re: sharing data between Angular components

2017-03-09 Thread Raymond Wong
there is cookbook on component communication in official site: https://angular.io/docs/ts/latest/cookbook/component-communication.html and yes, a component can have more than one service injected On Friday, March 10, 2017 at 2:20:15 AM UTC+8, Reza Razavipour wrote: > > Is the

[AngularJS] Re: Angular 2 + ASP.NET

2017-03-09 Thread Guest
I am in the same boat. What works for me so far is to have a sub-directory in my ASP.NET project (called for example, ng) where I deploy my Angular 2 apps. My Angular apps talk to my IIS via a RESTful API implemented in ASP.NET Web API. The ng folder contains no ASP.NET code. On Friday,

[AngularJS] Re: Synchronous Call Angular 2

2017-03-09 Thread Sander Elias
Oh, I made a typo in my example, the final map should return data. returning an assignment is not gonna work. .map((r) => data.getUserProps = r); should be: .map((r) => (data.getUserProps = r,data)); I'm not entirely sure if that's the root cause of your issue. Regards Sander -- You

[AngularJS] Re: sharing data between Angular components

2017-03-09 Thread Sander Elias
Hi Reza, euhm, Yes, yes, and yes! :-D Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Re: Angular2+ Routing with PathLocationStrategy used in HTML for content management

2017-03-09 Thread Sander Elias
Hi Martin, If your links look indeed like that, it should not reload, but indeed use the route. IIRC, tags don't need to be compiled/processed to work with the router. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS

Re: [AngularJS] AngularJS: Can't figure out why anchor wrapped by ng-if is rendering when false

2017-03-09 Thread David Karr
On Thu, Mar 9, 2017 at 7:28 AM, David Karr wrote: > I have a small SPA using AngularJS (1.6.1). It displays a table of data > obtained from a REST service. Some of the cells have text that should > render as a link, which when clicked will bring up a popup. Some of

[AngularJS] Re: Synchronous Call Angular 2

2017-03-09 Thread celerity12
http is injected in the constructor constructor(private http: Http) { } On Wednesday, March 8, 2017 at 9:08:07 PM UTC-8, Sander Elias wrote: > > Looks like you didn't inject http into your class. > > -- You received this message because you are subscribed to the Google Groups "Angular and

[AngularJS] sharing data between Angular components

2017-03-09 Thread Reza Razavipour
Is the suggested/customary way to implement an inter component data sharing the use of services? If so, the component involved in the sharing are injected with this service? And a component can have more than one service injected into it? -- You received this message because you are

[AngularJS] Angular2+ Routing with PathLocationStrategy used in HTML for content management

2017-03-09 Thread Martin Kuhn
I have to manage some content pages which are maintained by my app (in an admin mode). e.g. the admin writes the page with some editor in my app (using quill etc.) the resulting html looks like MyTest In this example content/detail/1083180739855 is a route in my SPA When presenting this

[AngularJS] AngularJS: Can't figure out why anchor wrapped by ng-if is rendering when false

2017-03-09 Thread David Karr
I have a small SPA using AngularJS (1.6.1). It displays a table of data obtained from a REST service. Some of the cells have text that should render as a link, which when clicked will bring up a popup. Some of them should not render as a link. The following is one of the "td" elements in my

Re: [AngularJS] Re: angular 2 client application getting an error with ws-app

2017-03-09 Thread Reza Razavipour
it was exactly that, you are correct. Regards, Reza On Wed, Mar 8, 2017 at 11:32 PM, Sander Elias wrote: > Hi Reza, > > Hard to tell if we don't see the full source code. Probably some mismatch > between templates and code > > Regards > Sander > > -- > You received this

[AngularJS] Re: What is the difference between Angular 2 Vs Angular 4

2017-03-09 Thread Sander Elias
AHi Saju Angular Vversion 4 has an 'else' option on ngIf, and compiles down to 40% smaller code. That's about it Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop

[AngularJS] What is the difference between Angular 2 Vs Angular 4

2017-03-09 Thread Saju Thankathurai
Hi, I am about to start a project using our Angular JS. Just wanted to know the difference between Angular 2 vs Angular 4. Which one we need to choose? -- *Saju Thankathurai,* -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion"