Discussion for angular (2+) - need help? create a stackblitz with your issue to get help faster using this template: https://stackblitz.com/fork/angular-issue-repro2
hello everybody
I m beginer on Angular generally & 8 specifically
So I cloned a git project et than I launched an npm install tu get back all projet dependencies
and after that I installedangular with npm install -g @angular/cli@8.1.3
Finally I lauched the server with ng serve -o
var code = "formatted";
(shift+enter for line break)
var code = "formatted";
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
10% building 3/3 modules 0 activei 「wds」: Project is running at http://localhost:4200/webpack-dev-server/
i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html
chunk {main} main.js, main.js.map (main) 1.99 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 122 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 3.47 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 339 kB [initial] [rendered]
Date: 2021-01-20T21:46:10.345Z - Hash: d7587d01caf91f2a36ea - Time: 20540ms
ERROR in src/app/accueil/components/connection/connection.component.ts:9:36 - error TS2307: Cannot find module 'src/ws-contrat/target/generated-sources/annabel-be/strict-http-response'.
9 import { StrictHttpResponse } from 'src/ws-contrat/target/generated-sources/annabel-be/strict-http-response';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/activation-mdp/components/donneespersonnelles/donneespersonnelles.component.ts:10:28 - error TS2307: Cannot find module 'src/ws-contrat/target/generated-sources/annabel-be/services/ods.service'.
10 import { OdsService } from 'src/ws-contrat/target/generated-sources/annabel-be/services/ods.service';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git checkout master
git merge new-feature
git branch -d new-feature
Refused to load the image 'http://localhost:8100/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
Refused to load the font '<URL>' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
Please help, I got this error from browser console after I ng add angular-calendar. Now my code do not work a again
const resolver = this.componentFactoryResolver.resolveComponentFactory(
MultipleChoiceComponent
);
const injector = Injector.create({
parent: this.injector,
providers: [
{
provide: MultipleChoiceService,
useValue: this.dataEntryService.multipleChoiceService
}
]
});
this.dynTypeHost.createComponent(resolver, 0, injector);
<meta http-equiv="Content-Security-Policy" ... >
Hi,
Is it possible to make a directive required in a component?
We have various common components that all need to make use of a directive.
I want to make sure the developer is alerted if the directive is not applied during coding.
I was hoping to use something like an interface, but don’t know if it is possible.
Any ideas anyone??
Thanks.
Hello guys,
We're here with December's most interesting Angular meetup videos. You'll learn about module federation, hosting apps on Firebase, using Prettier for style guides and auto formatting. There's also a comparison of different rendering methods SSR (using Angular Universal) and Jamstack, a video about Cypress for fast end-to-end testing and Deno (a secure runtime for JavaScript and TypeScript) as well!
Believe us, it's worth checking out!
See for yourself here: https://blog.meetupfeed.io/angular-meetup-videos-december-2020/
Regards,
MeetupFeed