[AngularJS] Angularjs http post returns the html as a response

2016-05-13 Thread kalyan kumar
Front end is angularjs and backend is cakephp. posting and getting the data using restful service. When i do it in simple jquery ajax post, the response is expected json object on successful post request. when i do it in angular http post, the response is a complete html page but the data is

[AngularJS] Re: import node_modules

2016-05-13 Thread Habib Kazemi
On Tuesday, May 10, 2016 at 11:50:57 AM UTC+4:30, Habib Kazemi wrote: > > hi,when I want to use node_modules in angular2 if that module has > 'require' in it,systemjs tries to find it in 'dist' folder how can I solve > this?how can i configure it? -- You received this message because you are

[AngularJS] Re: Angular 2 equivalent to window.onscroll()?

2016-05-13 Thread Guilherme Meireles
Hi Vern, One advantage is that the code gets decoupled from the DOM so it is easier to test. I am not sure about this next part but maybe using the renderer your application would be able to take advantage of things like Angular Native and Angular in a webworker. Regards, Guilherme -- You

[AngularJS] Re: Angular 2 equivalent to window.onscroll()?

2016-05-13 Thread Vern Jensen
Thanks Sander!! I had already tried https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.

[AngularJS] Support changing two areas on a page with a route change

2016-05-13 Thread Rob Cannon
I have an application with a tool bar. I want the right side of the toolbar to change (in addition to the main area) when the application changes to a new route. A typical scenario would be to put a search control in the right side of the toolbar when main content supports searching.

[AngularJS] ngComponent Router - get current router

2016-05-13 Thread Thomas Handle
I´d like to use the component router to create a navigation list (e.g Home - Dashboards - Dashboard 1). I´m including my current view with . Do I have to add the component in every sub-component or is it possible to include it in 1 place? My main template: Then for example my

Re: [AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Kyle Thomas
I can run express by itself by issuing: npm run server which does: "server": "cd server && node index.js" This opens express on port 3001 When I run the application (client) which is stored in /client I use: npm run go which does: "go": "concurrent \"npm run tsc:w\" \"npm run serve\" " This

Re: [AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Zlatko Đurić
Oh, well, that's because you didn't build your Angular app for deployment. Try running "npm build" if you're using one of the more popular packs. Then you'll get a "dist/production" directory or something similar - _that_ is the folder you need to serve. (Or at the very least, look in your

[AngularJS] Re: Is it possible to load Angular2 components from an external URL?

2016-05-13 Thread Richard Watts
Not sure about the dynamics regarding the latter part of your question (the service making a change). But I'm dynamically injecting Angular 2 components into my application with the use of System.import() I hope this helps a little. On Friday, May 13, 2016 at 3:16:33 PM UTC+1, Ryan Litvak

[AngularJS] Re: Is it possible to load Angular2 components from an external URL?

2016-05-13 Thread Sander Elias
Hi Ryan, Soon (if not already) the component router will be able to lazy load components. So, yes, this is possible, however, it will still take some figuring out on how to integrate all of this. Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Is it possible to load Angular2 components from an external URL?

2016-05-13 Thread Ryan Litvak
All the examples I have seen are using gulp/grunt to copy the assets locally at build time. What I really want to do is have a number of services that expose components, reference those components by URL, and dynamically load them into my application so that if the service makes a change to

[AngularJS] How to show hierarchical data in tabular format using ng-repeat

2016-05-13 Thread Tridip Bhattacharjee
i am new in angular. so i was reading write up just to accomplish my job. this way i will try but not sure that am i going in right direction? here is my sample code {{parent.pitem}} {{child.pitem }} var app = angular.module('myapp', []);

[AngularJS] how to load template dynamically or on demand with ng-include

2016-05-13 Thread Tridip Bhattacharjee
just see the below code where template name has been specified in ng-include but how could i set the template name dynamically? discuss with code sample. Here is the ng-include partial: {{c.text}} -- You received this

[AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Kyle Thomas
When I do that I get: > cd server && node index.js info: Express server listening on 3001, in development mode GET /node_modules/systemjs/dist/system.js 304 11.320 ms - - GET /node_modules/es6-shim/es6-shim.js 304 8.689 ms - - GET /node_modules/angular2/bundles/angular2-polyfills.js 304 10.217

[AngularJS] How to mix two custom directive in angular js

2016-05-13 Thread Tridip Bhattacharjee
here is one custom directive for multi select dropdown http://developers.dss.ucdavis.edu/angularjs-serachable-multiselect-dropdown-directive/ and here is one custom directive for numeric pagination http://brantwills.github.io/Angular-Paging/ now i want to embed numeric pagination directive

[AngularJS] How to develop Nth level of nested tabular output by using angular js ng-repeat with expand collapse feature

2016-05-13 Thread Tridip Bhattacharjee
out of curiosity i like to know can we develop Nth level of nested tabular output by using angular js ng-repeat. here is one screen shot attached because other people can understand what kind of output i am after. basically i have to show manager and employee relation info in nested

[AngularJS] AngularJS DIV Slide in and out

2016-05-13 Thread Tridip Bhattacharjee
hence i am new in angular and i was trying to know how could i create slide in and out div by angular and luckily i found a code snip which is working but effect is not very good and some time div is not getting slide in and out properly when click on left and right div. here is jsfiddle

[AngularJS] AngularJS How to add / remove directive dynamically in page when button click

2016-05-13 Thread Tridip Bhattacharjee
suppose i have two button and when we click on button 1 then show function call in controller and same way when we click on button 2 then hide function call in controller. from show function how could i dynamically load and add directive in page and as well as how could i hide or remove

[AngularJS] AngularJS Animated scroll to top issue

2016-05-13 Thread Tridip Bhattacharjee
many web site has feature for long page like when user scroll down bit then a arrow sign comes at right side and when user click on that arrow then pages scroll to top. i try to do the same with custom directive. my code is working but there is one issue that when programmatically page is

[AngularJS] Re: Angular 2 equivalent to window.onscroll()?

2016-05-13 Thread Guilherme Meireles
Hi Vern, You can use the renderer to listen for the scroll event in the window. constructor(private renderer: Renderer) { this.renderer.listenGlobal('window', 'scroll', (evt) => { console.log('scroll'); }); } Regards, Guilherme -- You received this message because you are subscribed to

[AngularJS] initialize $http service in js where angular is available

2016-05-13 Thread Jithin AK
Hi , I have a sample service var sampleService= ["$http", function ($http) { return { getWatchlistAssetType : function(request) { return $http.post(url, request); } }; }]; I am trying to dynamically inject this service as below var $injector =

[AngularJS] Hello world app - long loading

2016-05-13 Thread lonasPL
Hello, I have fallowed instruction from angular documentation how to create hello world https://angular.io/docs/ts/latest/quickstart.html I'm a little bit disappointed - hello world is loading couple seconds and when I'm sending request I have a log of js libs being loade How can I adjust

Re: [AngularJS] Re: AngularJS: How to show & hide busy indicator with bit of animation

2016-05-13 Thread Tridip Bhattacharjee
thanks @Sander. please tell me how to attach my style1 when show button click and same way how to attach style2 when hide button click. initially will have style2 attached. looking for your suggestion. if possible tell me how to make it in directive too. thanks On Fri, May 13, 2016 at 10:50

[AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Zlatko Đurić
On Thursday, May 12, 2016 at 6:30:31 PM UTC+2, Kyle Thomas wrote: > > Is it possible to start up node and have both run on the same port? > Node app as a backend API and the angular app as a frontend? Yeah, relatively simple, if you let Node serve your angular stuff. Look up express.static()