chsakell / angular2-features Goto Github PK
View Code? Open in Web Editor NEWAngular CRUD ops, Modals, Animations, Pagination, DateTimePicker, Directives and much more..
Home Page: http://wp.me/p3mRWu-199
License: MIT License
Angular CRUD ops, Modals, Animations, Pagination, DateTimePicker, Directives and much more..
Home Page: http://wp.me/p3mRWu-199
License: MIT License
ISSUE
the entityframework-api which this repository uses to save data base changes on updating(http put) schedules throws a DbUpdateConcurrencyException when updating schedules. The data base saves, but an exception may have future side effects. Below is the fix.
MODULE- dotnetcore-entityframework-api-master\Scheduler.Data\Repositories\EntityBaseRepository.cs
HANDLER- public virtual void Commit()
CHANGED FROM -
context.SaveChanges();
CHANGED TO +
try
{
_context.SaveChanges();
}
catch(DbUpdateConcurrencyException ex)
{
// nothing for now
}
Hello,
I have clone this app,
When I run this app and if I pass URL route parameter different compare to configured in app.route.ts it will not working.
So what I have to do if I want to check caseInsensitive URL ?
Hello. After several days of effort I am unable to make this work. I don't know if it's user error on my end or not but I have followed the simple and straightforward directions that are listed but to no avail. I have done the appropriate investigation and while I've found many issues with similar symptoms I have yet to find something to resolve my issue. And to be clear I am not making any alterations to the code other than what is required to set the correct API URL. I'm simply trying to get the base repo code to work. And for what it's worth I have tried both the Master and Production branches.
Any assistance would be appreciated.
Details...
cloned and setup and launched the repo for the backing API for this project (dotnetcore-entityframework-api)
success
cloned this repo (angular2-features)
success
npm install
-- UNMET PEER DEPENDENCY [email protected]
bower install
success
updated the api url in config.services.ts api url
this._apiURI = 'http://localhost:8153/api/';
npm start
browser launched with loading spinner but nothing more
chrome browser dev tools results
Request URL: http://localhost:3000/traceur
Request Method: GET
Status Code: 404 Not Found
Remote Address: [::1]:3000
initiator: zone.js:1382
When updating a schedule a DbUpdateConcurrencyException is generated from the scheduler.API when updating a schedule in the browser.
The problem is in Controllers\SchedulesController.cs of Scheduler.API.
If the following is commented out in the-- public IActionResult Put(int id, [FromBody]ScheduleViewModel schedule) --handler I no longer get the exception.
// Remove current attendees
//_attendeeRepository.DeleteWhere(a => a.ScheduleId == id);
//foreach (var userId in schedule.Attendees)
//{
// _scheduleDb.Attendees.Add(new Attendee { ScheduleId = id, UserId = userId });
//}
I am using Windows VS2015 for the API. Visual Studio Code for the Browser.
EXCEPTION: Error: Uncaught (in promise): Template parse errors:
Unexpected closing tag "div" (" firstText="«" lastText="»" (pageChanged)="pageChanged($event)">
TypeError: Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' })
. at transpile (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3655:11) at http://localhost:3000/node_modules/systemjs/dist/system.src.js:3438:12 at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:242:26) at Zone.run (http://localhost:3000/node_modules/zone.js/dist/zone.js:113:43) at http://localhost:3000/node_modules/zone.js/dist/zone.js:535:57 at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:275:35) at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:151:47) at drainMicroTaskQueue (http://localhost:3000/node_modules/zone.js/dist/zone.js:433:35)
Console:
[1] 17.02.13 14:31:36 200 GET /src/app/home/home.component.js
[1] 17.02.13 14:31:36 200 GET /favicon.ico
[1] 17.02.13 14:31:36 200 GET /src/app/shared/directives/mobile-hide.directive.js
[1] 17.02.13 14:31:36 200 GET /src/app/schedules/schedule-edit.component.js
[1] 17.02.13 14:31:36 200 GET /src/app/schedules/schedule-list.component.js
[1] 17.02.13 14:31:36 200 GET /src/app/users/user-card.component.js
[1] 17.02.13 14:31:36 200 GET /src/app/users/user-list.component.js
[1] 17.02.13 14:31:36 200 GET /src/app/app.routes.js
[1] 17.02.13 14:31:36 200 GET /src/app/shared/services/data.service.js
[1] 17.02.13 14:31:36 200 GET /src/app/shared/utils/config.service.js
[1] 17.02.13 14:31:36 200 GET /src/app/shared/utils/items.service.js
[1] 17.02.13 14:31:36 200 GET /src/app/shared/utils/mapping.service.js
[1] 17.02.13 14:31:36 200 GET /src/app/shared/utils/notification.service.js
[1] 17.02.13 14:31:36 304 GET /node_modules/@angular/common/bundles/common.umd.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/symbol/observable.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/Subject.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/Observable.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/Subscriber.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/root.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/Subscription.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/ObjectUnsubscribedError.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/SubjectSubscription.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/symbol/rxSubscriber.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/toSubscriber.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/isFunction.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/Observer.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/isArray.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/isObject.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/tryCatch.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/errorObject.js
[1] 17.02.13 14:31:36 304 GET /node_modules/rxjs/util/UnsubscriptionError.js
[1] 17.02.13 14:32:53 304 GET /node_modules/bootstrap/dist/css/bootstrap.min.css
[1] 17.02.13 14:32:53 304 GET /bower_components/font-awesome/css/font-awesome.min.css
[1] 17.02.13 14:32:53 304 GET /bower_components/alertify.js/themes/alertify.core.css
[1] 17.02.13 14:32:53 304 GET /bower_components/alertify.js/themes/alertify.bootstrap.css
[1] 17.02.13 14:32:53 304 GET /assets/css/styles.css
[1] 17.02.13 14:32:53 304 GET /node_modules/core-js/client/shim.min.js.map
[1] 17.02.13 14:32:53 304 GET /node_modules/reflect-metadata/Reflect.js.map
In schedule-edit.component.html missing parens, so changes are not saved!
CHANGED FROM -
select class="form-control" [ngModel]="schedule.status" name="status"
select class="form-control" [ngModel]="schedule.type" name="type"
CHANGED TO +
select class="form-control" [(ngModel)]="schedule.status" name="status"
select class="form-control" [(ngModel)]="schedule.type" name="type"
After run npm install:
Error:
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jquery/tags/1.10.0%2B20160417213236" typings ERR! caused by connect ECONNREFUSED 104.24.112.177:443
Console:
` c:\Dev\angular\angular2-features>npm install
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update
to graceful-fs@^4.0.0 as soon as possible. Use npm ls graceful-fs to find it in the tree.
npm WARN deprecated [email protected]: Use uuid module instead
[email protected] postinstall c:\Dev\angular\angular2-features
typings install
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jquery/tags/1.10.0%2B20160417213236"
typings ERR! caused by connect ECONNREFUSED 104.24.112.177:443
typings ERR!
typings ERR! cwd c:\Dev\angular\angular2-features
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files\nodejs\node.exe" "c:\Dev\angular\angular2-features\node_modules\typings
\dist\bin.js" "install"
typings ERR! node -v v4.7.0
typings ERR! typings -v 1.5.0
typings ERR! code EUNAVAILABLE
typings ERR!
typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues `
best regards
Hi.
Please, can you create example how to edit data in modal form?
Best regards
Code was updated to support @angular/forms but is still using import { FORM_DIRECTIVES, NgForm } from '@angular/common' when this should be changed to '@angular/forms' and omit FORM_DIRECTIVES....see https://angular.io/docs/ts/latest/guide/forms.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.