[AngularJS] How to use a directive file in multiple module(i.e. app1 and app2), using requireJS

2015-12-22 Thread Kumar Prashant
hi all i have a directive file which i am using with a module like this define(['app'], function (app) { app.directive('abcd'). }); BUT now i need this directive *abcd *to use in other module i.e. app2, i am not able to use this. Kindly if anyone have solution, then tell. USING angular

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Sander Elias
Hi Manfred, Martin. There is a good reason there is no support for this. It leads to tightly coupled code, and the code tends to land 'far' away from where it belongs. The easy solution is to create a service that checks the thing you need, and then just assign that to the canActivate lifetime h

[AngularJS] Re: [angular.js] Re: CoffeeScript and AngularJS

2015-12-22 Thread Steve Smith
Yep. I agree with you.Integration of coffescript with AngularJs makes the syntax usage much better. AngularJs Training On Tuesday, June 5, 2012 at 2:04:09 PM UTC+5:30, Glen Maddern wrote: > > I think it's a syntax preference. For exam

[AngularJS] Cannot post, $http service

2015-12-22 Thread Garwan50
Hey, i try to use both angularjs and PHP in order to make a registration app. However, every http post request i make send me a code 404 not found. I upload my code onto jsfiddle because plunker is down. https://jsfiddle.net/L40x1950/ images : http://puu.sh/m4FVO/3e607fd137.png the content of

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Manfred Steyer
Hi Sander, I think it depends on the use case and I also think the framework should give us the possibility so that we can decide. But I'm curious: Do you know for sure, that this is not supported? Wishes, Manfred Am Dienstag, 22. Dezember 2015 11:21:40 UTC+1 schrieb Sander Elias: > > Hi Ma

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Martin Kuhn
Sorry I strongly disagree. I do the route config already on the "app" component. I don't see "coupling" -> I see this as cross cutting concern. So I have to inject the "router logic" service into every Component and have to ask the service. The decision should really be made by the developer. Fr

[AngularJS] Re: Cannot post, $http service

2015-12-22 Thread Sander Elias
Hi Garwan50, Your fiddle seems unresponsive. However, you might want to try to start your URL in $http with a "/" or even a fully qualified path. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and s

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Sander Elias
Hi Manfred, Not 100% sure for the current incarnation, but I had a similar conversation with Brian about this quite long ago. I will check it, to be 100% sure, and then report back here ;) Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS"

[AngularJS] Re: Cannot post, $http service

2015-12-22 Thread Garwan50
Hi! Yeah fiddle doesn't work as good as plunker it was mostly to share the code. I tried adding a "/" and an absolute path but nothing, i just have Cannot POST /register.php when plunker will be up again, i'll upload my code on it. thanks. -- You received this message because you are subscri

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Sander Elias
Hi Manfred, So, I did a quick check, and didn't find anything that convinces me it has changed. I think your use case can be quickly resolved by using the routerCanDeactivate lifecycle method, of the component that host

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Martin Kuhn
I don't see the big win for maintainability. The logic for the decision is probably in a service. So you have to inject this service into every component and implement "canActivate" . Only for calling the service which makes the decision Regards Am Dienstag, 22. Dezember 2015 14:41:46 UTC+1 sc

[AngularJS] Re: Cannot post, $http service

2015-12-22 Thread Garwan50
Here's the plunker version : http://plnkr.co/edit/xEiGyhswnx5pVwiI7tC0?p=preview -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.co

[AngularJS] OnActivate in Directive

2015-12-22 Thread Sebastian Stehle
Hi, I want to realize page transitions in an angular2 application. I tried several approaches: 1. My first approach was to implement the OnActivate interface and then add some classes to my component root object. This works fine, but has some problems: First, it is the same code for any compo

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Sander Elias
Hi Martin, No, you shouldn't need to inject it everywhere. Usually there is no need for that. If you make sure that at a higher-level component the check is done. See, for the router your app has a tree-like structure. You can put an can(de)activate on every branch, and/or even at the base. e

[AngularJS] Re: Read Value from scope

2015-12-22 Thread Raj
Hi Sander Thanks for your inputs and each and every word make sense. I changed Click Me! friendName: {{ friendName }} and on each click now I can see the friendName from ng-init. Thanks Rajan On Tuesday, December 22, 2015 at 1:15:15 AM UTC-5, Sander Elias wrote: > Hi Raj, > > You

[AngularJS] Re: curly braces in URL causes digest loop in phantom?

2015-12-22 Thread Jared McAteer
Thank you Adrien, this solved my problem, although I don't think this is a proper solution it's going to get me where I need to be until i can dig in deeper. On Tuesday, May 20, 2014 at 2:45:37 PM UTC-6, Adrien Baron wrote: > > If a lost adventurer ever cross this thread, is how to solve it : Di

[AngularJS] AngularJS Position For Startup w SEED funding

2015-12-22 Thread Clarence Mitchell
We are an ambitious startup located in Atlanta, Ga that just received our first form of SEED funding in the form of acceptance into a top tier accelerator program. We are a team of three, one CEO, a front-end designer and a CTO. We are currently looking for someone that has extensive Angula

[AngularJS] are modules a thing in angular even for dart?

2015-12-22 Thread Daniel Davidson
A few very basic questions - not even *stackoverflow* worthy yet. This Arichitecture Guide does not have the word *controller* on it. A *Component* references a *template* which provides the view, and a *class* for behavior. Would y

[AngularJS] How To Define Functionality

2015-12-22 Thread ShatterStar
Hi Guys, I would like to know how do I define the functionality on the $scope, I know that AngularJS is a javascript framework so am I correct in saying that all javascript functions can be used in angular as well? Can anyone point me to any good resources where I can learn how to define comple

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Manfred Steyer
Hi Sander, thanks for checking this and for your answers. I think a good use case would look like this: - Providing metadata for components to state that they can be accessed by unauthenticated users, something like @Auth({anonymous:true}) - Using event to prevent unauthenticated users to acces

[AngularJS] Angular2 one javascript file

2015-12-22 Thread Daniel
Hi, We have an existing project I want to add some Angular2 into. I've gotten it working with the standard Typescript + System.js setup although I compile my .ts files on the server side. What I haven't figured out is how I can skip relying on System.js loading external files. We currently send

[AngularJS] Re: Dynamically add Component with Angular 2

2015-12-22 Thread Daniel
Hi, This is how I've solved it on my end @Component({ selector: 'test', template: 'TEST!' }) class Test {} class Loader{ ... ngOnInit() { var type = 'test' var clazz = type.camelize() // clazz = 'Test' this.loader.loadIntoLocation(eval(clazz), this.elementRef, 'dynamicInstance

[AngularJS] documentation issue - forms chapter

2015-12-22 Thread Anthony Matteo
It's just a documentation issue, but its been confusing me and I was hoping to get some clarity. On https://angular.io/docs/ts/latest/guide/forms.html, I think the line "When we added the ngControl directive, we bound it to the the model's name property" is wrong. It's not bound to the model's

[AngularJS] Multiple page application

2015-12-22 Thread Teddy Hartanto
Hi, may I ask is it a good practice to break a huge angular app into multiple page application? For instance, suppose i have an e-commerce website, the authentication part is handled by one app, and the main website is handled by another one. Is this a good practice? Also, what if i want the ma

[AngularJS] Re: Multiple page application

2015-12-22 Thread GoGeek
Hi Teddy. This is an issue I have also run into using angular. Since the angular paradigm involves downloading all of the layout at the same time, the static content becomes very heavy with large applications. I worked on converting a full page app into angular when the full page app was 400

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Sander Elias
Hi Manfred, - Providing metadata for components to state that they can be accessed by > unauthenticated users, something like @Auth({anonymous:true}) > - Using event to prevent unauthenticated users to access components > without this directive or with @Auth({anonymous:false}) > Well, the state

[AngularJS] Re: How To Define Functionality

2015-12-22 Thread Sander Elias
Read the documentation? https://docs.angularjs.org/api/ng/type/$rootScope.Scope -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.co

[AngularJS] Angular1 - Paid Tech Support

2015-12-22 Thread Kapil Khanna
Hi, My team is learning AngularJS v.1 on the fly in a live project and needs professional help with coding issues, coding best practices and design best practice. Right now they are using the free forums to resolve their issues. Please advise if a paid support with quick turnaound will help and

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-22 Thread Martin Kuhn
Hi Sander, there is no use case which demands a global handler absolutley. But it would be very convenient. With "inject the service in every component" I meant the main component of a certain domain (e.g. for a user profile page). And of course not the many "components which are used to asse

[AngularJS] Re: How To Define Functionality

2015-12-22 Thread ShatterStar
Thanks Sander but it doesn't answer my question but from what I can see the answer is yes correct me if I am wrong On Wednesday, December 23, 2015 at 7:30:11 AM UTC+2, Sander Elias wrote: > > Read the documentation? > https://docs.angularjs.org/api/ng/type/$rootScope.Scope > > -- You received