Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Bulat.V
@fclmman
@adibro500 you can use it. You are asking about rxjs with ng 6?
aditya
@adibro500
@fclmman yes but can u provide an example to how to do it?
Bulat.V
@fclmman
@adibro500 yes of course mostly operators are used with pipe now. I will give you example in a few seconds. looking over my sources
aditya
@adibro500
@fclmman thx a ton
Bulat.V
@fclmman
here is it
_observable.pipe(
takeUntil(this.Stop),
map(this.CallBackFn)
) .subscribe((x: any) => {
  whatever you are going to do
});

@adibro500 and here is

"rxjs": "^6.0.0",

version from my package.json

aditya
@adibro500
@fclmman what does takeUntil() function do?
Bulat.V
@fclmman
@adibro500 that was just for demonstrationg multiple functions inside pipe(). TakeUntil takes an observable as argument and stops subscription when it fires. I use to unsubscribe when component is destroyed
aditya
@adibro500
@fclmman can u show me the code to allow only first n number of items from an array response?
can you fit this case into your code sample ?
Bulat.V
@fclmman
@adibro500
_observable.pipe(
take(10),
map(this.CallBackFn)
) .subscribe((x: any) => {
  whatever you are going to do
});
Kompwu
@Kompwu
How to switch from single quotes to double quotes ?
for cli generated files
Mihai Varga
@mihaivarga
Hello, when I run ng build --configuration=staging --output-path dist --output-hashing all --base-href=/ I get this error ERROR in ./src/app/app.module.ngfactory.js
Module not found: Error: Can't resolve '@my-lib/angular-common-lib/src/app/modules/index' in '\src\app'
can you advise on how to debug this? my-lib is a library created with angular-cli and ng-packagr
Ezequiel Jose Lopez
@cocolote
Hi all, I'm trying to execute Unit Test with Node instead of using Karma. Is it possible to use Mocha Chai and Sinon to test an Angular 5 application generated with angular-cli?
Jan
@pungiish
Anyone knows if it's possible to use ng-sw in an angular 4 app?
wdunn
@wdunn001
has anyone here tried to extend an injectable service
Devlin Duldulao
@webmasterdevlin
The src/manifest.json asset path must start with the project source root. I'm stuck here. I already changed a lot of paths. Can't figure it out.
bmovva
@bmovva
hi guys need some help upgraded to angular v6 . while using angular 2 in tslint json i used to keep directive selector as empty object so it wouldnt complain about prefix but now in v6 it starts complaining about the app prefix
can you please help how to make tslint neglect this rule
Anthony Price
@Sevensnake
@bmovva taking will complain but as a warning. You could go in and change your elements with the hyphen withing your application.Just change them with your selectors.
@bmovva tslint not taking
bbholtest
@bbholtest
@bbholtest
how can I use common header and footer in two angular 5 projects ?
need help
losorio35
@losorio35
Hi guys, I have problems with the deploy angular 6 in Apache server, I have the following error:
Any solution please?
Alex Rickabaugh
@alxhub
@losorio35 have you tried running locally in the CLI?
Can you reproduce the problem with ng serve --aot?
losorio35
@losorio35
ok
Alibra
@thedubb
hey all, can someone help me understand how I would go about outputting multiple .js files to my dist/ directory from my angular.json file? Is it just a matter of adding different options? Like:
"outputPath": "dist/angular-webpack-check",
"index": "src/index.html",
"main": "src/main.ts”,
“something": “src/something/something.ts”,
“somethingElse": “src/somethingElse/somethingElse.ts",...
Alibra
@thedubb
Looks like the above is not the correct way to do this, you’ll end up with an error:
Schema validation failed with the following errors:
  Data path "" should NOT have additional properties(something)
losorio35
@losorio35
Hi guys, I have problems with the deploy angular 6 in Apache server, I have the following error:
Any solution please?
image.png
image.png
losorio35
@losorio35
hello @alxhub , run ng serve --aot, and I still have problems deploy my angular project 6 to a server with apache
any solition please?
Nitin
@nitink2985_twitter
@here Regarding, Lazy loading of feature library modules from node_modules. Could we find a way to directly load a feature module from node modules, rather creating an wrapper?
Pawel Kondraciuk
@pawelkondraciuk
Hey! So I have a problem :) Is it possible to set outputHashing only to lazy chunks? After build I need full name of main bundles (main, vendor, polyfill, runtime), ManifestPlugin works best for webpack, is something similar in cli?
Alibra
@thedubb
what’s up everyone. Is there way to generate a module and not include a folder? ex: ng generate module foo that is not in the foo/foo.module.ts directory?
Jayesh
@prajapatijayesh

Anyone can help me
Getting error at the time of building angular application.
My system is running on the following packages version

node -v
v8.9.4
npm -v
6.2.0
@angular/cli@6.1.0

When I'm trying to build application using ng build
Getting following error

/node_modules/@angular/cli/ember-cli/lib/ui/index.js:56
    this.outputStream.write(data);
                      ^

TypeError: Cannot read property 'write' of undefined
    at UI.write (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/@angular/cli/ember-cli/lib/ui/index.js:56:23)
    at UI.writeLine (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/@angular/cli/ember-cli/lib/ui/index.js:69:8)
    at callback (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/@angular/cli/tasks/build.js:44:29)
    at emitRecords.err (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/Compiler.js:265:13)
    at Compiler.emitRecords (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/Compiler.js:371:38)
    at emitAssets.err (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/Compiler.js:258:10)
    at applyPluginsAsyncSeries1.err (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/Compiler.js:364:12)
    at next (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
    at next (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/tapable/lib/Tapable.js:220:14)
    at Compiler.compiler.plugin (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/@ngtools/webpack/src/plugin.js:326:13)
    at next (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/tapable/lib/Tapable.js:220:14)
    at callback (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/copy-webpack-plugin/dist/index.js:126:17)
    at Compiler.afterEmit (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/copy-webpack-plugin/dist/index.js:220:13)
    at Compiler.applyPluginsAsyncSeries1 (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/tapable/lib/Tapable.js:222:13)
    at Compiler.afterEmit (/Users/jayesh/roambee-codebase/single-page-apps/pod/node_modules/webpack/lib/Compiler.js:361:9)

Any idea why getting error?

Alexander Mikuta
@alexandermikuta
What is the best way to work with mat-select and mat-option in combination with ngrx? Currently the selected values are automatically set by the component, but for ngrx it would be best to only emit the changes but not updating the gui until the values are present in ngrx-store which then will update the gui via changed @Input-values.
Tom McKearney
@tommck
I'm running ng update \@angular/cli as part of upgrading and getting self signed certificate in certificate chain error. Everything I see in github issues and elsewhere seems to indicate that this should be fixed, but I'm using latest cli and getting this error.
I do use a local npm repo (artifactory) and I have strict-ssl=false in my .npmrc file.
Daniel Groh
@dgroh

Hello...I'm using nrwl/nx and I'm trying to run npm run affected:build but I get the following error:

4 verbose run-script [ 'preaffected:apps', 'affected:apps', 'postaffected:apps' ]
5 info lifecycle lotes-maps@0.0.0~preaffected:apps: lotes-maps@0.0.0
6 info lifecycle lotes-maps@0.0.0~affected:apps: lotes-maps@0.0.0
7 verbose lifecycle lotes-maps@0.0.0~affected:apps: unsafe-perm in lifecycle true
8 verbose lifecycle lotes-maps@0.0.0~affected:apps: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Projekte\Git\lotes-maps\node_modules.bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Lenovo\Touch Fingerprint Software\;C:\Program Files (x86)\Common Files\Lenovo;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\dotnet\;C:\Maven\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\WINDOWS\System32\OpenSSH\;C:\Users\dgroh\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\dgroh\AppData\Local\Programs\Fiddler;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\dgroh\AppData\Roaming\npm;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
9 verbose lifecycle lotes-maps@0.0.0~affected:apps: CWD: D:\Projekte\Git\lotes-maps
10 silly lifecycle lotes-maps@0.0.0~affected:apps: Args: [ '/d /s /c', 'nx affected:apps' ]
11 silly lifecycle lotes-maps@0.0.0~affected:apps: Returned: code: 1 signal: null
12 info lifecycle lotes-maps@0.0.0~affected:apps: Failed to exec affected:apps script
13 verbose stack Error: lotes-maps@0.0.0 affected:apps: nx affected:apps

any idea?
Vlado Tesanovic
@vladotesanovic
anyone knows when they will publish new @angular/cli, adding @angular/pwa does not work now
PeS82
@PeS82

generating library does not work?

ng generate library my-lib -d
Your global Angular CLI version (6.1.1) is greater than your local
version (6.1.0-rc.0). The local Angular CLI version is used.

CREATE projects/my-lib/src/lib/my-lib.service.spec.ts (369 bytes)
CREATE projects/my-lib/src/lib/my-lib.service.ts (134 bytes)

...and thats all.... not much would be created :(

Tom Stones
@stones
Anybody else have issues when upgrading ngtools/webpack 6.0.8 > 6.1.0 and host replacement paths
bravecobra
@bravecobra
@stones seems I am
Vito
@VitoAlbano
Hello guys, we are running our e2e tests via the cli command (ng e2e) and i was wondering if there’s a way to add the retry for the failed ones. Looking a little around i found protractor-retry but it fails when it attemps the retry (‘cause the cli doesn’t support the same protractor flags)