[AngularJS] How to get back to the path in the shell after command

2018-03-02 Thread Frank Mehlhop
Hi, wenn I start a command at the shell like "ng serve" I get all the text and on the end "webpack: Compiled successfully.". But when it's finished I cant use the shell anymore because there is no cursor (behind the path like usual). How can I quit to get back to the command opportunity? Frank

[AngularJS] cmd zurück zur Eingabe

2018-03-08 Thread Frank Mehlhop
Hallo, wenn ich im mit cli im cmd einen Befehl wie zBsp.ng serve --open ausführe, dann bleibt die Shell so stehen, dass ich nichts weiter eingeben kann. D.h. es wird nicht am Ende der aktuelle Pfad und mein Cursor angezeigt. Wie komme ich zurück zur Eingabe-Option ohne die Shell neu zu starten?

[AngularJS] Re: How to get back to the path in the shell after command

2018-03-08 Thread Frank Mehlhop
Hi Sander, but even when I close the browser, the shell is not coming back?! Frank Am Samstag, 3. März 2018 06:27:30 UTC+1 schrieb Sander Elias: > > Hi Frank, > > You don't. Your command is starting the server, and is monitoring your > code, and will update your browser when you make changes. I

[AngularJS] Re: How to get back to the path in the shell after command

2018-03-16 Thread Frank Mehlhop
Thanks! :-) I also find out that with Control + C I can stop the process. Frank -- 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 angular+uns

[AngularJS] How to change the theme for DivExtreme controls

2018-03-16 Thread Frank Mehlhop
Hi, I want to change the theme for DivExtreme elements. Here I made my new custom theme: https://js.devexpress.com/ThemeBuilder/ I saved the new css file (named generic.dark.custom.css). But *where at my Angular App I can select the theme?* Frank (I'm using Visual Studio Code) -- You received

[AngularJS] Re: How to change the theme for DivExtreme controls

2018-03-16 Thread Frank Mehlhop
Thank you very much Sander! :-) Am Freitag, 16. März 2018 13:11:55 UTC+1 schrieb Frank Mehlhop: > > Hi, > > I want to change the theme for DivExtreme elements. > Here I made my new custom theme: > https://js.devexpress.com/ThemeBuilder/ > I saved the new css file (named ge

[AngularJS] How to call events in DevExtreme

2018-03-16 Thread Frank Mehlhop
Hey, i use a *SelectBox *from *DevExtreme*. When the user is leaving the SelectBox *I will get a event*. I gaz "focusOut" will be the right on. So I implement the call like that: Inside the myCom.component.ts, and in the MyCom -class I write: onSelectLanguageFocusOut() { alert('hu'); } The al

[AngularJS] Re: How to call events in DevExtreme

2018-03-16 Thread Frank Mehlhop
After restarting the process it works (with out changes). Thanks, Frank -- 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 angular+unsubscr...@

[AngularJS] How to collapse a DivExtreme SelectBox?

2018-03-16 Thread Frank Mehlhop
Hallo, I use a DivExtreme SelectBox like that: https://js.devexpress.com/Demos/WidgetsGallery/Demo/SelectBox/Overview/.. (the "costum template" -selectBox). When the user leaves the SelectBox, the SelectBox s

[AngularJS] How to style a single DivExtreme control?

2018-03-16 Thread Frank Mehlhop
Hi, I use different DivExtreme controls. one of theme (a SelectBox) need's a different style than the others. I produced a nice style with the ThemeBuilder and I can use it successfully for the hole application. But I want to use it only for one control.

[AngularJS] Why I can't access the function

2018-03-19 Thread Frank Mehlhop
Hi, I got a angular application created by cli. At a componant.ts I got this code inside the constructor: function getLangSelector() { return document.getElementById('getLangSelector() !!'); } const e = document.getElementById('langSelector'); if (e === undefined)

[AngularJS] How to know when DOM is loaded?

2018-03-19 Thread Frank Mehlhop
Hi, at my angular app inside a compenent.ts I want to know when the DOM is ready loaded. So I put inside the constructer following code: window.addEventListener('load', function () { console.log('DOM fully loaded and parsed '); }, false); The log ""DOM fully loaded an

[AngularJS] Re: Why I can't access the function

2018-03-20 Thread Frank Mehlhop
Thanks Sander for your lines! I'm happy you spend your time for this problem. You are rigt, the id is different. Nevertheless I found out, that I can get the element, when I ask for in the ngOnInit-Method. Cheeers, Frank Am Montag, 19. März 2018 13:09:07 UTC+1 schrieb Frank Mehlhop: &

[AngularJS] Re: Why I can't access the function

2018-03-20 Thread Frank Mehlhop
Thanks Sander for your lines! I'm happy you spend your time for this problem. You are right, the id is different. Nevertheless I found out, that I can get the element, when I ask for in the ngOnInit-Method. Cheers, Frank Am Montag, 19. März 2018 13:09:07 UTC+1 schrieb Frank Mehlhop: &

[AngularJS] Re: Why I can't access the function

2018-03-20 Thread Frank Mehlhop
Thanks Sander for your lines! I'm happy you spend your time for this problem. You are rigt, the id is different. Cheeers, Frank Am Montag, 19. März 2018 13:09:07 UTC+1 schrieb Frank Mehlhop: > > Hi, > > I got a angular application created by cli. > At a componant.ts I got

[AngularJS] using variable from main in a nested component

2018-03-23 Thread Frank Mehlhop
Hi, i got a boolean variable in the main.component.ts. In there is a NavBar.component, inside the NavBar is a further component. Inside the last component (inside html) I would like to use the variable from the main. Is it posible? What I should know how to use it? Thanks a lot for help! Frank

[AngularJS] Re: using variable from main in a nested component

2018-03-27 Thread Frank Mehlhop
Hi Sander, i got (e.g.) a *main.component.ts* with the line: *myBoolean = false;* in the *main.component.html* is the line: ** in the *firstchild.component.html* is the line: ** in the *secondchild.component.ts* is the line: *if ( myBoolean === true ) { ... }* It means I would like to use a va

[AngularJS] Re: using variable from main in a nested component

2018-03-27 Thread Frank Mehlhop
*Thank you very much* Sander for your time and* for your help*! :-) Frank Am Freitag, 23. März 2018 12:58:41 UTC+1 schrieb Frank Mehlhop: > > Hi, > > i got a boolean variable in the main.component.ts. > In there is a NavBar.component, > inside the NavBar is a further compo

[AngularJS] Unit test failed

2018-04-03 Thread Frank Mehlhop
Hi, when I start *ng test* I get a exception from this test: it('should create', () => { expect(component).toBeTruthy(); }); here the exception: Chrome 65.0.3325 (Windows 10.0.0) LanguageSelectorComponent should create FAILED TypeError: this.service.get is not a function

[AngularJS] Best practice to do a password request

2018-08-05 Thread Frank Mehlhop
Hi, to enter my site I'll implement a password request. Only user with a valid password is allowed to see the content of the site. What is the best practice? Because ts the user can access and penetrate I guess I should do it via php?! Is there a example some where to find? Frank -- You receive

[AngularJS] best practice for detect changes (when changing route)

2018-08-27 Thread Frank Mehlhop
Hi, I use components and in it propertys of own models. When I change the route I want to know the property items are manipulated or not. (In that case there should be a warning like "You want to save changes?") My focus is on *how to detect changes of the model object?* Frank What I have and

Re: [AngularJS] best practice for detect changes (when changing route)

2018-08-27 Thread Frank Mehlhop
I understood correctly the question, you can use the CanDeactivate > guard to implement logic to detect if a component has changes. The logic > will be executed before changes to a new component. > > On 08/27/2018 06:37 AM, Frank Mehlhop wrote: > > Hi, > > I use components and i

[AngularJS] Re: best practice for detect changes (when changing route)

2018-08-27 Thread Frank Mehlhop
I tried implementing *ChangeDetectorRef*, but I don't know *how to get the information about my property* myModel *changed or not*. Frank Am Montag, 27. August 2018 11:37:42 UTC+2 schrieb Frank Mehlhop: > > Hi, > > I use components and in it propertys of own models. > When